Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2004-08-19 13:56:26 +0400
committerMichal Čihař <michal@cihar.com>2004-08-19 13:56:26 +0400
commitf895465cdc6ddb8f6f9bd35f66599c10b02d7949 (patch)
treec1620089ba56d5173d26ca21767b79cdaf12e78a /read_dump.php
parente9f19691b9fe660bd7a196e2df9c55b0a98beb8e (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.php2
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