Commit 81094348 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 179264 csv output for the buglist (see url inside) is invalid (too many "s)

r,a=justdave
parent 9a0ca71b
...@@ -1586,15 +1586,12 @@ $::template ||= Template->new( ...@@ -1586,15 +1586,12 @@ $::template ||= Template->new(
# characters that need encoding. # characters that need encoding.
url_quote => \&Bugzilla::Util::url_quote, url_quote => \&Bugzilla::Util::url_quote,
# In CSV, quotes are doubled, and any value containing a quote or a # In CSV, quotes are doubled, and we enclose the whole value in quotes
# comma is enclosed in quotes.
csv => sub csv => sub
{ {
my ($var) = @_; my ($var) = @_;
$var =~ s/"/""/; $var =~ s/"/""/g;
if ($var =~ /",/) { $var = "\"$var\"";
$var = "\"$var\"";
}
return $var; return $var;
} , } ,
} , } ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment