Skip to content

Commit

Permalink
Utilize $dbh->quote
Browse files Browse the repository at this point in the history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@885 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information
jakubvrana committed Jul 23, 2009
1 parent 5034123 commit e13720e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/functions.inc.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit e13720e

Please sign in to comment.