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

r,a=justdave


git-svn-id: svn://10.0.0.236/trunk@133531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net
2002-11-10 06:40:05 +00:00
parent 27020b681d
commit fa55f7fe9e

View File

@@ -1586,15 +1586,12 @@ $::template ||= Template->new(
# characters that need encoding.
url_quote => \&Bugzilla::Util::url_quote,
# In CSV, quotes are doubled, and any value containing a quote or a
# comma is enclosed in quotes.
# In CSV, quotes are doubled, and we enclose the whole value in quotes
csv => sub
{
my ($var) = @_;
$var =~ s/"/""/;
if ($var =~ /",/) {
$var = "\"$var\"";
}
$var =~ s/"/""/g;
$var = "\"$var\"";
return $var;
} ,
} ,