Permalink
Browse files

Don't include trailing space to delimiter

  • Loading branch information...
vrana committed Aug 9, 2012
1 parent 1501d60 commit 7fcfb0d16a1f08fa40bcb4a83369044e5ff7df42
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/sql.inc.php
View
@@ -58,7 +58,7 @@
$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 {

0 comments on commit 7fcfb0d

Please sign in to comment.