diff options
author | gerv%gerv.net <> | 2002-11-17 05:39:13 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2002-11-17 05:39:13 +0100 |
commit | dc8c4313145243a574a0b8ba5abc1dccec790e20 (patch) | |
tree | 46a9c0ca29f725b8f8fdcd44f104eaed74fd8046 | |
parent | 24b66775ad5f36e9d5a3685c9e15964038f2899e (diff) | |
download | bugzilla-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.pl | 4 |
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; } , } , |