diff options
author | Thomas BrĂ¼derli | 2007-02-05 16:03:39 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-02-05 16:03:39 +0000 |
commit | 220b1413fb29059e7f9450d93b64f1eb854a1311 (patch) | |
tree | e9c5dcdac3a0b5ad9154bd9806ae7b1f43ebcf22 /itjs.class | |
parent | c330b7962ae9af5093cfe47e9cb981f6e9720ca2 (diff) | |
download | itools-220b1413fb29059e7f9450d93b64f1eb854a1311.tar.gz itools-220b1413fb29059e7f9450d93b64f1eb854a1311.tar.bz2 itools-220b1413fb29059e7f9450d93b64f1eb854a1311.zip |
Prevent from invalid quoting: strval(intval('000080')) == strval('000080') is true
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ function encode($values) if (!is_array($value)) { - $quote = (strval(intval($value)) == strval($value)) ? "" : '"'; + $quote = (strval(intval($value)) === strval($value)) ? "" : '"'; $result .= $quote . strtr($value, array("\0" => '\\0', '"' => '\\"', "</"=>"<\\/", "\n" => '\\n', "\r" => '\\r', "\t" => '\\t', "\\" => '\\\\')) . $quote; } else |