aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-03-06 14:42:04 +0000
committerlpsolit%gmail.com <>2009-03-06 14:42:04 +0000
commitc126dc00918547207e8bb99a9947c2ad96e93cd8 (patch)
tree05291c4f3f7282e19bc256e2199e39bf1d8e0f7c
parent2nd part of bug 481506: Filtering email addresses in comments can hang Bugzil... (diff)
downloadbugzilla-c126dc00918547207e8bb99a9947c2ad96e93cd8.tar.gz
bugzilla-c126dc00918547207e8bb99a9947c2ad96e93cd8.tar.bz2
bugzilla-c126dc00918547207e8bb99a9947c2ad96e93cd8.zip
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 <dmarshal@yahoo-inc.com> r=LpSolit
-rw-r--r--Bugzilla/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index 9122ed3cf..398957b13 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;