do not build upper case variant as well if key contains slash

This commit is contained in:
John
2022-04-30 15:38:43 +02:00
parent da52dc2eba
commit 891488bf22
+1 -1
View File
@@ -469,7 +469,7 @@ bool StringReplacers::set(const string& key, const string& value, bool removeRep
if (removeReplacer) {
m_replacers.erase(key);
}
if (key.find_first_of("-_") != string::npos) {
if (key.find_first_of("-_/") != string::npos) {
return false;
}
string upper = key;