1
0
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:
Adrian Jones
2024-04-08 19:01:37 -07:00
committed by Jakub Vrana
parent c2f8ccc8d8
commit 4484f5f620

View File

@@ -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;
}
}