From: Jakub Vrana Date: Tue, 6 Feb 2018 11:58:06 +0000 (+0100) Subject: Do not modify $_GET["where"] X-Git-Tag: v4.6.1~46 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=c52fb951b0b086cd1189d4cbc837da5245f3e914;p=adminer.git Do not modify $_GET["where"] --- diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 00ca8c0f..413ca3ba 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -366,9 +366,8 @@ class Adminer { echo "\n"; } } - $_GET["where"][] = array(); $change_next = "this.parentNode.firstChild.onchange();"; - foreach ($_GET["where"] as $i => $val) { + foreach (array_merge((array) $_GET["where"], array(array())) as $i => $val) { if (!$val || ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators))) { echo "
" . select_input( " name='where[$i][col]'",