From: lpsolit%gmail.com <> Date: Fri, 6 Mar 2009 14:42:04 +0000 (+0000) Subject: 2nd fix for bug 105960 (xml.cgi and other future xml pages generate invalid XML)... X-Git-Tag: bugzilla-3.3.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c126dc00918547207e8bb99a9947c2ad96e93cd8;p=thirdparty%2Fbugzilla.git 2nd fix for bug 105960 (xml.cgi and other future xml pages generate invalid XML). Some illegal characters were still not excluded - Patch by David Marshall r=LpSolit --- diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 9122ed3cf8..398957b13a 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -215,7 +215,7 @@ sub xml_quote { # (#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]) $var =~ s/([\x{0001}-\x{0008}]| [\x{000B}-\x{000C}]| - [\x{000E}-\x{0019}]| + [\x{000E}-\x{001F}]| [\x{D800}-\x{DFFF}]| [\x{FFFE}-\x{FFFF}])//gx; return $var;