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 06:58:40 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-07 03:26:03 +0300
commit72163b22570fff1f275e992f0740e8c13ecb323d (patch)
tree52f3c97a15e106dd46af2edc10644550fd56d057 /core/Config.php
parent31d8b40a97c5251f0fd716649b8fa5a4b5dad300 (diff)
refs #6435 if a float is assigned to a config value and a german locale is used the wrong value will be saved (5,55 instead of 5.55)
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Config.php b/core/Config.php
index 95f4e62e6c..db2e1e5d6a 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -382,6 +382,10 @@ class Config extends Singleton
$value = $this->encodeValues($value);
}
} else {
+ if (is_float($values)) {
+ $values = Common::forceDotAsSeparatorForDecimalPoint($values);
+ }
+
$values = htmlentities($values, ENT_COMPAT, 'UTF-8');
$values = str_replace('$', '&#36;', $values);
}