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

Rename = edit operator to SQL

This commit is contained in:
Jakub Vrana
2013-04-26 12:20:47 -07:00
parent e287642e26
commit ada8917e43

View File

@@ -510,7 +510,7 @@ username.form['auth[driver]'].onchange();
}
}
if ($key && !ereg('set|blob|bytea|raw|file', $field["type"])) {
$return .= "/=";
$return .= "/SQL";
}
}
}
@@ -541,7 +541,7 @@ username.form['auth[driver]'].onchange();
* @return string expression to use in a query
*/
function processInput($field, $value, $function = "") {
if ($function == "=") {
if ($function == "SQL") {
return $value; // SQL injection
}
$name = $field["field"];