From: Jakub Vrana Date: Thu, 9 Aug 2012 15:39:54 +0000 (-0700) Subject: Don't include trailing space to delimiter X-Git-Tag: v3.5.1~6 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=7fcfb0d16a1f08fa40bcb4a83369044e5ff7df42;p=adminer.git Don't include trailing space to delimiter --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index fe8721e8..58d260a7 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -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 {