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:
@@ -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
|
||||
|
Reference in New Issue
Block a user