diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6cd5096 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +user-config.inc.php diff --git a/html.inc.php b/html.inc.php index 903d4d6..2bbce91 100644 --- a/html.inc.php +++ b/html.inc.php @@ -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; diff --git a/json.php b/json.php index 028b712..0826fd3 100644 --- a/json.php +++ b/json.php @@ -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);