mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
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:
@@ -332,7 +332,7 @@ function process_input($name, $field) {
|
||||
} elseif ($field["type"] == "enum") {
|
||||
return (isset($_GET["default"]) ? $dbh->quote($value) : intval($value));
|
||||
} 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"])) {
|
||||
$file = get_file($idf);
|
||||
if (!is_string($file)) {
|
||||
|
Reference in New Issue
Block a user