summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-07 23:22:54 +0200
committerCarl Hetherington <cth@carlh.net>2023-09-07 23:23:13 +0200
commit5a1966c187c189da43a650f1425b29190f5cfe78 (patch)
tree61da51de0f1011776db2df09c3d2fe23ae46e272 /src/lib/util.cc
parent393d08d199c0b83a42a095bdd8eb3bb7573cd608 (diff)
Disallow % from asset names as it seems to awake some XML character-encoding
demons.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 13a062bc6..6339cb6a6 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -799,7 +799,7 @@ careful_string_filter (string s)
/* Then remove anything that's not in a very limited character set */
wstring out;
- wstring const allowed = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_%.+";
+ wstring const allowed = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.+";
for (int i = 0; i < transliterated_more.length(); ++i) {
wchar_t c = transliterated_more[i];
if (allowed.find(c) != string::npos) {