add check in checkNameFunction

This commit is contained in:
Markus 2019-10-27 20:35:16 +01:00
parent fce2707f54
commit 2b6af638c0

View File

@ -225,7 +225,7 @@ std::string PageManager::checkName(std::string Name)
} else if (html.find("404 - Seite nicht gefunden") != std::string::npos) { } else if (html.find("404 - Seite nicht gefunden") != std::string::npos) {
std::cout << "\33[2K\r => Error: Ungültiger Name: " << Name << std::endl; std::cout << "\33[2K\r => Error: Ungültiger Name: " << Name << std::endl;
return "-1"; return "-1";
} else if (html == "-1") { } else if (html == "-1" || html == "") {
return "-1"; return "-1";
} }
else { else {