diff options
author | Byron Jones <glob@mozilla.com> | 2014-04-23 08:26:28 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-04-23 08:26:28 +0200 |
commit | 407e1314ed3439e6a2e0585aeb5e4d482caef6e1 (patch) | |
tree | 7ab96ccd2fbbac0b88327526dc5389172d72f9f0 | |
parent | 81deb32db9cb7f4ba46402e896fa3ef5497f25e1 (diff) | |
download | bugzilla-407e1314ed3439e6a2e0585aeb5e4d482caef6e1.tar.gz bugzilla-407e1314ed3439e6a2e0585aeb5e4d482caef6e1.tar.xz |
Add missing fix from bug 968576
-rw-r--r-- | Bugzilla/Util.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index a030a92dd..75427af14 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -98,6 +98,10 @@ sub html_quote { state $use_utf8 = Bugzilla->params->{'utf8'}; if ($use_utf8) { + # Remove control characters if the encoding is utf8. + # Other multibyte encodings may be using this range; so ignore if not utf8. + $var =~ s/(?![\t\r\n])[[:cntrl:]]//g; + # Remove the following characters because they're # influencing BiDi: # -------------------------------------------------------- |