summaryrefslogtreecommitdiffstats
path: root/inc/up_json_encode.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-10-06 17:36:17 +0200
committerSimon Rettberg2014-10-06 17:36:17 +0200
commitb05cdc02cd972a7e2e27e3a0e6cb729c346e1652 (patch)
tree148bcdbf10b90e971f4b6be86226fef6852fd448 /inc/up_json_encode.php
parentAdded NFS help, add missing strings for minilinux download (diff)
downloadslx-admin-b05cdc02cd972a7e2e27e3a0e6cb729c346e1652.tar.gz
slx-admin-b05cdc02cd972a7e2e27e3a0e6cb729c346e1652.tar.xz
slx-admin-b05cdc02cd972a7e2e27e3a0e6cb729c346e1652.zip
Fix up_json_encode being retarded by not escaping quotes by default
Diffstat (limited to 'inc/up_json_encode.php')
-rw-r--r--inc/up_json_encode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/up_json_encode.php b/inc/up_json_encode.php
index 07fcb0c7..28556923 100644
--- a/inc/up_json_encode.php
+++ b/inc/up_json_encode.php
@@ -136,7 +136,7 @@ function up_json_encode($var, $options = 0, $_indent = "")
"<" => $options & JSON_HEX_TAG ? "\\u003C" : "<",
">" => $options & JSON_HEX_TAG ? "\\u003E" : ">",
"'" => $options & JSON_HEX_APOS ? "\\u0027" : "'",
- "\"" => $options & JSON_HEX_QUOT ? "\\u0022" : "\"",
+ "\"" => "\\u0022",
"&" => $options & JSON_HEX_AMP ? "\\u0026" : "&",
);
$var = strtr($var, $rewrite);