Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Utilize $dbh->quote

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@885 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit e13720e56991c8542fe45f3091f744ed246c3884 1 parent 5034123
jakubvrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/include/functions.inc.php
View
2  adminer/include/functions.inc.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.