From b05cdc02cd972a7e2e27e3a0e6cb729c346e1652 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 6 Oct 2014 17:36:17 +0200 Subject: Fix up_json_encode being retarded by not escaping quotes by default --- inc/up_json_encode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') 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); -- cgit v1.2.3-55-g7522