summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-11-17 05:39:13 +0100
committergerv%gerv.net <>2002-11-17 05:39:13 +0100
commitdc8c4313145243a574a0b8ba5abc1dccec790e20 (patch)
tree46a9c0ca29f725b8f8fdcd44f104eaed74fd8046
parent24b66775ad5f36e9d5a3685c9e15964038f2899e (diff)
downloadbugzilla-dc8c4313145243a574a0b8ba5abc1dccec790e20.tar.gz
bugzilla-dc8c4313145243a574a0b8ba5abc1dccec790e20.tar.xz
Bug 179264 - only quote non-numeric CSV values. Patch by gerv; r=joel, a=justdave.
-rw-r--r--globals.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 170ec8c41..3a2ff71a9 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1591,7 +1591,9 @@ $::template ||= Template->new(
{
my ($var) = @_;
$var =~ s/"/""/g;
- $var = "\"$var\"";
+ if ($var !~ /^-?(\d+\.)?\d*$/) {
+ $var = "\"$var\"";
+ }
return $var;
} ,
} ,