From baac4449b1ce78e8b3a43d3d7bba54801c96feba Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 30 Apr 2009 19:10:45 +0000 Subject: [PATCH] Allow +- in unquoted IN (bug #2784541) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@593 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {