]> git.joonet.de Git - adminer.git/commitdiff
Allow +- in unquoted IN (bug #2784541)
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 30 Apr 2009 19:10:45 +0000 (19:10 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 30 Apr 2009 19:10:45 +0000 (19:10 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@593 7c3ca157-0c34-0410-bff1-cbf682f78f5c

functions.inc.php

index 8568b2f0bf854bdd5a4a0749a66a6a72be457763..1caa4d2111436057e3d3f85c75f3684814eae64e 100644 (file)
@@ -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() {