diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-07-17 05:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-17 05:25:27 +0200 |
commit | ac995e4ebf84924b6be9dba3fe8358f0a5857ad1 (patch) | |
tree | 66108ca7e4c20218653b7fcdc607b900f1c9a467 /Bugzilla/Template.pm | |
parent | 77dcbc804df9133207dd112a1a99821f66b2b9f7 (diff) | |
download | bugzilla-ac995e4ebf84924b6be9dba3fe8358f0a5857ad1.tar.gz bugzilla-ac995e4ebf84924b6be9dba3fe8358f0a5857ad1.tar.xz |
Bug 1476052 - Bugzilla mishandles diff attachments that are UTF-8 and contain U+FFFF
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 9eea0d3dd..8cf91052e 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -624,6 +624,7 @@ sub create { # and newlines/carriage returns escaped for use in JS strings. js => sub { my ($var) = @_; + no warnings 'utf8'; $var =~ s/([\\\'\"\/])/\\$1/g; $var =~ s/\n/\\n/g; $var =~ s/\r/\\r/g; @@ -639,6 +640,7 @@ sub create { # for details. json => sub { my ($var) = @_; + no warnings 'utf8'; $var =~ s/([\\\"\/])/\\$1/g; $var =~ s/\n/\\n/g; $var =~ s/\r/\\r/g; |