From 802b83a0fb3b5877215538dfe68642eace378932 Mon Sep 17 00:00:00 2001 From: Huntereb Date: Thu, 31 Oct 2019 12:07:04 -0400 Subject: [PATCH] Check for bad urls to some extent --- source/ui/netInstPage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/ui/netInstPage.cpp b/source/ui/netInstPage.cpp index 286fe70..658a81c 100755 --- a/source/ui/netInstPage.cpp +++ b/source/ui/netInstPage.cpp @@ -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;