From: Carl Hetherington Date: Thu, 7 Sep 2023 21:22:54 +0000 (+0200) Subject: Disallow % from asset names as it seems to awake some XML character-encoding X-Git-Tag: v2.16.64~12 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=5a1966c187c189da43a650f1425b29190f5cfe78;p=dcpomatic.git Disallow % from asset names as it seems to awake some XML character-encoding demons. --- 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) {