From 00189f17dcd4674513e42dc7ff2f651951245c9e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Oct 2011 00:04:57 +0200 Subject: [PATCH] Fix: Enhance successfull dump detection --- htdocs/admin/tools/export.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php index 1621473c2f5..23a0b436d81 100644 --- a/htdocs/admin/tools/export.php +++ b/htdocs/admin/tools/export.php @@ -168,7 +168,8 @@ if ($what == 'mysql') { $read = fgets($handlein); fwrite($handle,$read); - if (preg_match('/-- Dump completed/i',$read)) $ok=1; + if (preg_match('/'.preg_quote('-- Dump completed').'/i',$read)) $ok=1; + elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1; } pclose($handlein);