Allow + in DCP names for ISDCF RU rating strings.
authorCarl Hetherington <cth@carlh.net>
Sun, 22 Apr 2018 20:34:34 +0000 (21:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 22 Apr 2018 20:34:34 +0000 (21:34 +0100)
src/lib/util.cc

index abfdd2767c31a50f6a3342c684cc9fcea9a9c960..3eb5ee30e09e06831924988fd7d85e37f9d81ab4 100644 (file)
@@ -718,7 +718,7 @@ careful_string_filter (string s)
        */
 
        string out;
-       string const allowed = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_%.";
+       string const allowed = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_%.+";
        for (size_t i = 0; i < s.size(); ++i) {
                if (allowed.find (s[i]) != string::npos) {
                        out += s[i];