From f895465cdc6ddb8f6f9bd35f66599c10b02d7949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 19 Aug 2004 09:56:26 +0000 Subject: Fixed one case of reload detection (I forgot to update second regexp on 2004-08-16) (bug #1011479). --- read_dump.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'read_dump.php') 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 -- cgit v1.2.3