1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Fix importing multiple SQL files not terminated by semicolon

Inspired by adminneo-org/adminneo#1c08e86.
This commit is contained in:
Jakub Vrana
2025-03-10 08:33:25 +01:00
parent df6fe6b108
commit 6dcc5081e1
3 changed files with 9 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ if (!$error && $_POST) {
), "rb");
$query = ($fp ? fread($fp, 1e6) : false);
} else {
$query = get_file("sql_file", true);
$query = get_file("sql_file", true, ";");
}
if (is_string($query)) { // get_file() returns error as number, fread() as false