Skip to content

Commit

Permalink
Merge pull request #29 from aoware/dev
Browse files Browse the repository at this point in the history
Support for php8
  • Loading branch information
k0a1a authored Aug 9, 2024
2 parents ff69c8d + ddea016 commit 4760596
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 4760596

Please sign in to comment.