summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-11-10 15:40:05 +0100
committerbugreport%peshkin.net <>2002-11-10 15:40:05 +0100
commit8109434862e948a3aabc30ce0d4672daee1e0866 (patch)
tree22af6ed64a91a9de71157dad4fb5020e4ee13456
parent9a0ca71bd6e67b6433326bbfe827348cd0636964 (diff)
downloadbugzilla-8109434862e948a3aabc30ce0d4672daee1e0866.tar.gz
bugzilla-8109434862e948a3aabc30ce0d4672daee1e0866.tar.xz
Bug 179264 csv output for the buglist (see url inside) is invalid (too many "s)
r,a=justdave
-rw-r--r--globals.pl9
1 files changed, 3 insertions, 6 deletions
diff --git a/globals.pl b/globals.pl
index bee0ed9ff..170ec8c41 100644
--- a/globals.pl
+++ b/globals.pl
@@ -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;
} ,
} ,