Skip to content

Commit

Permalink
Encode JSON with JSON_UNESCAPED_SLASHES and JSON_UNESCAPED_UNICODE op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
alecpl committed Aug 22, 2017
1 parent cf9019e commit 1235dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_output.php
Expand Up @@ -327,7 +327,7 @@ public static function get_edit_field($col, $value, $attrib, $type = 'text')
public static function json_serialize($input, $pretty = false)
{
$input = rcube_charset::clean($input);
$options = 0;
$options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;

if ($pretty) {
$options |= JSON_PRETTY_PRINT;
Expand Down

0 comments on commit 1235dcf

Please sign in to comment.