mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Fix uninitialized string offset
This can happen if you include an unpaired single or double quote, eg: SELECT * FROM table_name WHERE field_name = 'test
This commit is contained in:
committed by
Jakub Vrana
parent
c2f8ccc8d8
commit
4484f5f620
@@ -87,7 +87,7 @@ if (!$error && $_POST) {
|
||||
$query .= fread($fp, 1e5);
|
||||
} else {
|
||||
$offset = $match[0][1] + strlen($s);
|
||||
if ($s[0] != "\\") {
|
||||
if (!$s || $s[0] != "\\") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user