diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-06 02:01:57 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-07 03:26:00 +0300 |
commit | 33c9e8d5e5995f67e5cfdea131f43bac6a7c916e (patch) | |
tree | 5b57b47899356d2fe31aac28e89f553b98dfdd09 /core/Common.php | |
parent | 66f3e3f13166e613fd2220a8d5c9736448ffdc02 (diff) |
refs #6435 make sure we compare values using a dot in getRequestVar
Diffstat (limited to 'core/Common.php')
-rw-r--r-- | core/Common.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Common.php b/core/Common.php index d3ff241ccf..6dfa2d22fa 100644 --- a/core/Common.php +++ b/core/Common.php @@ -474,7 +474,10 @@ class Common } elseif ($varType === 'integer') { if ($value == (string)(int)$value) $ok = true; } elseif ($varType === 'float') { - if ($value == (string)(float)$value) $ok = true; + $valueToCompare = (string)(float)$value; + $valueToCompare = Common::forceDotAsSeparatorForDecimalPoint($valueToCompare); + + if ($value == $valueToCompare) $ok = true; } elseif ($varType === 'array') { if (is_array($value)) $ok = true; } else { |