From: lpsolit%gmail.com <> Date: Fri, 6 Mar 2009 14:43:40 +0000 (+0000) Subject: 2nd fix for bug 105960 (xml.cgi and other future xml pages generate invalid XML)... X-Git-Tag: bugzilla-3.2.3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a52fc8bd57542cb60fc8b6761e7f86bee7a2c4f4;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 3c59c177c9..dbeaaa5d4b 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -206,7 +206,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;