1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-14 18:44:02 +02:00

Rename empty select operator to SQL

This commit is contained in:
Jakub Vrana
2013-04-26 12:04:28 -07:00
parent 4858f332c8
commit e287642e26
6 changed files with 7 additions and 7 deletions

View File

@@ -400,8 +400,8 @@ username.form['auth[driver]'].onchange();
if (ereg('IN$', $val["op"])) {
$in = process_length($val["val"]);
$cond .= " (" . ($in != "" ? $in : "NULL") . ")";
} elseif (!$val["op"]) {
$cond .= $val["val"]; // SQL injection
} elseif ($val["op"] == "SQL") {
$cond = " $val[val]"; // SQL injection
} elseif ($val["op"] == "LIKE %%") {
$cond = " LIKE " . $this->processInput($fields[$val["col"]], "%$val[val]%");
} elseif (!ereg('NULL$', $val["op"])) {

View File

@@ -6,7 +6,7 @@ if (extension_loaded('pdo')) {
function __construct() {
global $adminer;
$pos = array_search("", $adminer->operators);
$pos = array_search("SQL", $adminer->operators);
if ($pos !== false) {
unset($adminer->operators[$pos]);
}