mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2024-11-22 11:43:18 +00:00
Check for bad urls to some extent
This commit is contained in:
parent
78a7177948
commit
802b83a0fb
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@ namespace inst::ui {
|
|||
rc = swkbdShow(&kbd, tmpoutstr, sizeof(tmpoutstr));
|
||||
swkbdClose(&kbd);
|
||||
if (R_SUCCEEDED(rc) && tmpoutstr[0] != 0) {
|
||||
if (inst::util::formatUrlString(tmpoutstr) == "") {
|
||||
mainApp->CreateShowDialog("The URL specified is invalid!", "", {"OK"}, false);
|
||||
mainApp->LoadLayout(mainApp->mainPage);
|
||||
return;
|
||||
}
|
||||
ourUrls[0] = tmpoutstr;
|
||||
netInstPage::startInstall(true);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue