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
parente9f19691b9fe660bd7a196e2df9c55b0a98beb8e (diff)
Fixed one case of reload detection (I forgot to update second regexp on 2004-08-16) (bug #1011479).
-rwxr-xr-xChangeLog4
-rw-r--r--read_dump.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index efebc60a94..fd51a91b68 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
+2004-08-19 Michal Čihař <michal@cihar.com>
+ * read_dump.php: Fixed one case of reload detection (I forgot to update
+ second regexp on 2004-08-16) (bug #1011479).
+
2004-08-17 Michal Čihař <michal@cihar.com>
* sql.php: Work with $display_query only if set (Marc spotted this out).
* libraries/display_export.lib.php: No options text should not be bold red
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