Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-11-06 02:01:57 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-07 03:26:00 +0300
commit33c9e8d5e5995f67e5cfdea131f43bac6a7c916e (patch)
tree5b57b47899356d2fe31aac28e89f553b98dfdd09 /core/Common.php
parent66f3e3f13166e613fd2220a8d5c9736448ffdc02 (diff)
refs #6435 make sure we compare values using a dot in getRequestVar
Diffstat (limited to 'core/Common.php')
-rw-r--r--core/Common.php5
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 {