From: Jakub Vrana Date: Sat, 11 Jan 2014 20:22:54 +0000 (-0800) Subject: Allow \r after -- comment X-Git-Tag: v4.0.3~23 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f301fc2dcde3a95b5e9166bcf644e7f9c631eba4;p=adminer.git Allow \r after -- comment --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 1c47e4c0..27b0cc37 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -45,7 +45,7 @@ if (!$error && $_POST) { } } - $space = "(?:\\s|/\\*.*\\*/|(?:#|-- )[^\n]*\n|--\n)"; + $space = "(?:\\s|/\\*.*\\*/|(?:#|-- )[^\n]*\n|--\r?\n)"; $delimiter = ";"; $offset = 0; $empty = true;