From bcb6283bba6ee3453615d6970d9f0bca3b203ff5 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 19 Aug 2020 21:51:41 +0200 Subject: [PATCH] v4.2.2: no | in searchname possible --- src/parameterManager.h | 2 +- src/programManager.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/parameterManager.h b/src/parameterManager.h index 6ee6bd9..1dceb32 100644 --- a/src/parameterManager.h +++ b/src/parameterManager.h @@ -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%"; diff --git a/src/programManager.cpp b/src/programManager.cpp index c1a1e02..bc389e2 100644 --- a/src/programManager.cpp +++ b/src/programManager.cpp @@ -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);