v4.2.2: no | in searchname possible

This commit is contained in:
Markus 2020-08-19 21:51:41 +02:00
parent f16b31cb0d
commit bcb6283bba
2 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,7 @@ struct Settings {
proxy_ip = "127.0.0.1",
languages = "GerDub,GerSub,Eng,",
genaueHoster = "",
version = "4.2.1",
version = "4.2.2",
defaultFileVersion="1.8",
default_checkPath = "",
default_Searchmuster = "S%Staffel%E%Folge%";

View File

@ -672,6 +672,9 @@ int ProgramManager::searchModus(Settings *settings, std::string *saveTo, bool no
std::cout << "Aufruf: " << settings->programName << " search [OPTION]... [NAME]..." << std::endl;
std::cout << "\"" << settings->programName << " search --help\" liefert weitere Informationen." << std::endl;
return 0;
} else if(settings->name.find('|') != std::string::npos) {
std::cout << " => Error: Fehlerhaftes Zeichen \"|\" im Namen!" << std::endl;
return 0;
}

std::ifstream ifs(settings->serienListPath);