Not a bug Broken JSON in helper_js_global depending on locale and PHP version

Kirby

Well-known member
Affected version
2.3.4
Code:
imageOptimizationQuality: {{ $xf.app.config.maxImageResizeQuality / 100 }},
This breaks with PHP 7 if a locale ist set that does not use . as decimal separator as it might be rendered as 0,85 instead of 0.85 causing web upgrader to abort.
 
While it is true that this code fails with PHP 7 if the active locale when rendering helper_js_global is set to not have . as decimal separator this should never happen as XenForo standardizes the locale on bootstrap.

So this is most likely not a bug.
 
Back
Top Bottom