From 891488bf2207ad3bb640ff39a794bf0649d56907 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 30 Apr 2022 15:38:43 +0200 Subject: [PATCH] do not build upper case variant as well if key contains slash --- src/lib/ebus/stringhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/stringhelper.cpp b/src/lib/ebus/stringhelper.cpp index cfc86cc9..62b244e4 100644 --- a/src/lib/ebus/stringhelper.cpp +++ b/src/lib/ebus/stringhelper.cpp @@ -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;