From: jakubvrana Date: Thu, 30 Apr 2009 19:10:45 +0000 (+0000) Subject: Allow +- in unquoted IN (bug #2784541) X-Git-Tag: v3.0.0~928 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=baac4449b1ce78e8b3a43d3d7bba54801c96feba;p=adminer.git Allow +- in unquoted IN (bug #2784541) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@593 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/functions.inc.php b/functions.inc.php index 8568b2f0..1caa4d21 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -165,7 +165,7 @@ function where($where) { function process_length($length) { global $enum_length; - return (preg_match("~^\\s*(?:$enum_length)(?:\\s*,\\s*(?:$enum_length))*\\s*\$~", $length) && preg_match_all("~$enum_length~", $length, $matches) ? implode(",", $matches[0]) : preg_replace('~[^0-9,]~', '', $length)); + return (preg_match("~^\\s*(?:$enum_length)(?:\\s*,\\s*(?:$enum_length))*\\s*\$~", $length) && preg_match_all("~$enum_length~", $length, $matches) ? implode(",", $matches[0]) : preg_replace('~[^0-9,+-]~', '', $length)); } function collations() {