Check for bad urls to some extent

This commit is contained in:
Huntereb 2019-10-31 12:07:04 -04:00
parent 78a7177948
commit 802b83a0fb

View File

@ -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;