diff options
author | Michal Čihař <michal@cihar.com> | 2004-08-19 13:56:26 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2004-08-19 13:56:26 +0400 |
commit | f895465cdc6ddb8f6f9bd35f66599c10b02d7949 (patch) | |
tree | c1620089ba56d5173d26ca21767b79cdaf12e78a /read_dump.php | |
parent | e9f19691b9fe660bd7a196e2df9c55b0a98beb8e (diff) |
Fixed one case of reload detection (I forgot to update second regexp on 2004-08-16) (bug #1011479).
Diffstat (limited to 'read_dump.php')
-rw-r--r-- | read_dump.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read_dump.php b/read_dump.php index ad3364ba88..a1bd251f8b 100644 --- a/read_dump.php +++ b/read_dump.php @@ -312,7 +312,7 @@ if ($sql_query != '') { } // .*? bellow is non greedy expansion, just in case somebody wants to understand it... - if (!isset($reload) && preg_match('@^((-- |#)^[\n]*|/\*.*?\*/)*(DROP|CREATE)[[:space:]]+(IF EXISTS[[:space:]]+)?(TABLE|DATABASE)[[:space:]]+(.+)@i', $a_sql_query)) { + if (!isset($reload) && preg_match('@^((-- |#)[^\n]*\n|/\*.*?\*/)*(DROP|CREATE)[[:space:]]+(IF EXISTS[[:space:]]+)?(TABLE|DATABASE)[[:space:]]+(.+)@i', $sql_query)) { $reload = 1; } } // end for |