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"])) { 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 * @return string expression to use in a query
*/ */
function processInput($field, $value, $function = "") { function processInput($field, $value, $function = "") {
if ($function == "=") { if ($function == "SQL") {
return $value; // SQL injection return $value; // SQL injection
} }
$name = $field["field"]; $name = $field["field"];