1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-20 05:11:25 +02:00

Do not modify $_GET["where"]

This commit is contained in:
Jakub Vrana
2018-02-06 12:58:06 +01:00
parent 14429ff355
commit c52fb951b0

View File

@@ -366,9 +366,8 @@ class Adminer {
echo "</div>\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 "<div>" . select_input(
" name='where[$i][col]'",