v3.4.6: fix error: sonderzeicehn in der serienliste

This commit is contained in:
Markus 2019-10-30 16:37:35 +01:00
parent a450f87e0d
commit 6a526269db
2 changed files with 14 additions and 1 deletions

View File

@ -63,7 +63,7 @@ struct Settings {
proxy_ip = "127.0.0.1",
languages = "GerDub,GerSub,Eng,",
genaueHoster = "",
version = "3.4.5",
version = "3.4.6",
defaultFileVersion="1.6",
outputFilePath = "",
default_checkPath = "",

View File

@ -1215,6 +1215,19 @@ int ProgramManager::searchModus_update(Settings *settings)
if(serienListe.length() > 0)
serienListe.pop_back();

//Entferne Html Sonderzeichen
serienListe = pageManager.replace(serienListe, """, "\""); //

serienListe = pageManager.replace(serienListe, "&", "&"); //
serienListe = pageManager.replace(serienListe, "&lt;", "<"); //
serienListe = pageManager.replace(serienListe, "&gt;", ">"); //

serienListe = pageManager.replace(serienListe, "<br />", " "); //
serienListe = pageManager.replace(serienListe, "&quot;", "\""); //
serienListe = pageManager.replace(serienListe, "&apos;", "'"); //



//Anzahl der Serien/Zeilen vorher:
ssize_t countBef = 0;
std::ifstream myFileBef(settings->serienListPath);