1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-21 21:55:43 +02:00
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1052 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-08-31 10:11:52 +00:00
parent 4b3a0130ee
commit 9a176b0ca3
3 changed files with 194 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ if (!$error && $_POST) {
$offset = strlen($query);
}
} else { // find matching quote
while (preg_match("~$found|\\\\.|\$~s", $query, $match, PREG_OFFSET_CAPTURE, $offset)) {
while (preg_match("~$found|\\\\.|\$~s", $query, $match, PREG_OFFSET_CAPTURE, $offset)) { //! respect sql_mode NO_BACKSLASH_ESCAPES
$s = $match[0][0];
$offset = $match[0][1] + strlen($s);
if (!$s || $s == $found) {