Utilize $dbh->quote
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@885 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
503412367a
commit
e13720e569
|
@ -332,7 +332,7 @@ function process_input($name, $field) {
|
||||||
} elseif ($field["type"] == "enum") {
|
} elseif ($field["type"] == "enum") {
|
||||||
return (isset($_GET["default"]) ? $dbh->quote($value) : intval($value));
|
return (isset($_GET["default"]) ? $dbh->quote($value) : intval($value));
|
||||||
} elseif ($field["type"] == "set") {
|
} elseif ($field["type"] == "set") {
|
||||||
return (isset($_GET["default"]) ? "'" . implode(",", array_map('escape_string', (array) $value)) . "'" : array_sum((array) $value));
|
return (isset($_GET["default"]) ? $dbh->quote(implode(",", (array) $value)) : array_sum((array) $value));
|
||||||
} elseif (ereg('binary|blob', $field["type"])) {
|
} elseif (ereg('binary|blob', $field["type"])) {
|
||||||
$file = get_file($idf);
|
$file = get_file($idf);
|
||||||
if (!is_string($file)) {
|
if (!is_string($file)) {
|
||||||
|
|
Loading…
Reference in a new issue