Don't include trailing space to delimiter

This commit is contained in:
Jakub Vrana 2012-08-09 08:39:54 -07:00
parent 1501d60f14
commit 7fcfb0d16a

View file

@ -58,7 +58,7 @@ if (!$error && $_POST) {
$dump_format = $adminer->dumpFormat();
unset($dump_format["sql"]);
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];
$query = substr($query, strlen($match[0]));
} else {