mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Pass operator from db.inc.php
This commit is contained in:
@@ -61,6 +61,7 @@ if ($adminer->homepage()) {
|
|||||||
echo " <input type='submit' name='search' value='" . lang('Search') . "'>\n";
|
echo " <input type='submit' name='search' value='" . lang('Search') . "'>\n";
|
||||||
echo "</div></fieldset>\n";
|
echo "</div></fieldset>\n";
|
||||||
if ($_POST["search"] && $_POST["query"] != "") {
|
if ($_POST["search"] && $_POST["query"] != "") {
|
||||||
|
$_GET["where"][0]["op"] = "LIKE %%";
|
||||||
search_tables();
|
search_tables();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -512,9 +512,6 @@ class Adminer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ((array) $_GET["where"] as $key => $val) {
|
foreach ((array) $_GET["where"] as $key => $val) {
|
||||||
if ($val["op"] == "") {
|
|
||||||
$val["op"] = $_GET["where"][$key]["op"] = "LIKE %%";
|
|
||||||
}
|
|
||||||
if ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators)) {
|
if ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators)) {
|
||||||
$prefix = "";
|
$prefix = "";
|
||||||
$cond = " $val[op]";
|
$cond = " $val[op]";
|
||||||
|
Reference in New Issue
Block a user