diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-06 06:58:40 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-07 03:26:03 +0300 |
commit | 72163b22570fff1f275e992f0740e8c13ecb323d (patch) | |
tree | 52f3c97a15e106dd46af2edc10644550fd56d057 /core/Config.php | |
parent | 31d8b40a97c5251f0fd716649b8fa5a4b5dad300 (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.php | 4 |
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('$', '$', $values); } |