mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 09:04:02 +02:00
Don't include trailing space to delimiter
This commit is contained in:
@@ -58,7 +58,7 @@ if (!$error && $_POST) {
|
|||||||
$dump_format = $adminer->dumpFormat();
|
$dump_format = $adminer->dumpFormat();
|
||||||
unset($dump_format["sql"]);
|
unset($dump_format["sql"]);
|
||||||
while ($query != "") {
|
while ($query != "") {
|
||||||
if (!$offset && preg_match("~^$space*DELIMITER\\s+(.+)~i", $query, $match)) {
|
if (!$offset && preg_match("~^$space*DELIMITER\\s+(\\S+)~i", $query, $match)) {
|
||||||
$delimiter = $match[1];
|
$delimiter = $match[1];
|
||||||
$query = substr($query, strlen($match[0]));
|
$query = substr($query, strlen($match[0]));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user