From 5a1966c187c189da43a650f1425b29190f5cfe78 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 7 Sep 2023 23:22:54 +0200 Subject: Disallow % from asset names as it seems to awake some XML character-encoding demons. --- src/lib/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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) { -- cgit v1.2.3