From be6b7c6caccd0e53ac7befe67a4be056b98cd060 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 12 Jul 2013 11:12:57 -0700 Subject: [PATCH] Allow using json_row() in HTML --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 6077b056..74e96f4a 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -220,7 +220,7 @@ function json_row($key, $val = null) { echo "{"; } if ($key != "") { - echo ($first ? "" : ",") . "\n\t\"" . addcslashes($key, "\r\n\"\\") . '": ' . ($val !== null ? '"' . addcslashes($val, "\r\n\"\\") . '"' : 'undefined'); + echo ($first ? "" : ",") . "\n\t\"" . addcslashes($key, "\r\n\"\\/") . '": ' . ($val !== null ? '"' . addcslashes($val, "\r\n\"\\/") . '"' : 'undefined'); $first = false; } else { echo "\n}\n";