Allow +- in unquoted IN (bug #2784541)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@593 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
c92a8b73f2
commit
baac4449b1
|
@ -165,7 +165,7 @@ function where($where) {
|
||||||
|
|
||||||
function process_length($length) {
|
function process_length($length) {
|
||||||
global $enum_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() {
|
function collations() {
|
||||||
|
|
Loading…
Reference in a new issue