From b4bd65659c81e0890d70b6e1f0d3769dcffb7702 Mon Sep 17 00:00:00 2001 From: aoware <116970667+aoware@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:04:49 +0000 Subject: [PATCH] Update json.php for php8 support get_magic_quotes_gpc() is not supported in php8, so stripslashes are always executed --- json.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/json.php b/json.php index 028b712..0e4f056 100644 --- a/json.php +++ b/json.php @@ -44,9 +44,7 @@ // break; case 'POST': foreach ($_POST as $key=>$val) { - if (get_magic_quotes_gpc()) { - $val = stripslashes($val); - } + $val = stripslashes($val); $dec = @json_decode($val, true); if ($dec === NULL) { $err = response('Error decoding the argument '.quot($key).' => '.var_dump_inl($val), 400);