do not build upper case variant as well if key contains slash
This commit is contained in:
@@ -469,7 +469,7 @@ bool StringReplacers::set(const string& key, const string& value, bool removeRep
|
|||||||
if (removeReplacer) {
|
if (removeReplacer) {
|
||||||
m_replacers.erase(key);
|
m_replacers.erase(key);
|
||||||
}
|
}
|
||||||
if (key.find_first_of("-_") != string::npos) {
|
if (key.find_first_of("-_/") != string::npos) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
string upper = key;
|
string upper = key;
|
||||||
|
|||||||
Reference in New Issue
Block a user