Skip to content

Commit

Permalink
Merge pull request #1 from aoware/aoware-php8
Browse files Browse the repository at this point in the history
Update json.php for php8 support
  • Loading branch information
aoware authored Feb 26, 2024
2 parents ff69c8d + b4bd656 commit ddea016
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ddea016

Please sign in to comment.