We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f50123 commit 16176cbCopy full SHA for 16176cb
Bugzilla/Template.pm
@@ -860,6 +860,9 @@ sub create {
860
{
861
my ($var) = @_;
862
$var = ' ' . $var if substr($var, 0, 1) eq '=';
863
+ # backslash is not special to CSV, but it can be used to confuse some browsers...
864
+ # so we do not allow it to happen. We only do this for logged-in users.
865
+ $var =~ s/\\/\x{FF3C}/g if Bugzilla->user->id;
866
$var =~ s/\"/\"\"/g;
867
if ($var !~ /^-?(\d+\.)?\d*$/) {
868
$var = "\"$var\"";
0 commit comments