diff options
author | alecpl <alec@alec.pl> | 2009-12-11 16:53:54 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-12-11 16:53:54 +0000 |
commit | 2717f9f68e74277379c065d32bd0771976e49c86 (patch) | |
tree | f53fee8d67b8cac77e00e0ced33f538f5eb228d2 /program/include/rcube_template.php | |
parent | f47e2dc5ea51853ade73565261db43f36ceeee92 (diff) |
- use proper unicode cleanup for JSON, fixes #1486356
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-x | program/include/rcube_template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 19f2d430b..5226f8db8 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -414,12 +414,12 @@ class rcube_template extends rcube_html_page { $out = ''; if (!$this->framed && !empty($this->js_env)) { - $out .= JS_OBJECT_NAME . '.set_env('.json_encode($this->js_env).");\n"; + $out .= JS_OBJECT_NAME . '.set_env('.json_serialize($this->js_env).");\n"; } foreach ($this->js_commands as $i => $args) { $method = array_shift($args); foreach ($args as $i => $arg) { - $args[$i] = json_encode($arg); + $args[$i] = json_serialize($arg); } $parent = $this->framed || preg_match('/^parent\./', $method); $out .= sprintf( |