Skip to content

Commit

Permalink
fix: k0a1a#27
Browse files Browse the repository at this point in the history
  • Loading branch information
antics committed Jun 23, 2024
1 parent ff69c8d commit 77348af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
user-config.inc.php
3 changes: 2 additions & 1 deletion html.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ function elem_finalize($elem)
*/
function elem_has_class($elem, $c)
{
if (@in_array($c, $elem['class'])) {
if (is_array($elem) && is_array($elem['class']) && @in_array($c, $elem['class'])) {
//if (@in_array($c, $elem['class'])) {
return true;
} else {
return false;
Expand Down
6 changes: 3 additions & 3 deletions json.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
// break;
case 'POST':
foreach ($_POST as $key=>$val) {
if (get_magic_quotes_gpc()) {
$val = stripslashes($val);
}
//if (get_magic_quotes_gpc()) {
// $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 77348af

Please sign in to comment.