Skip to content
Snippets Groups Projects
Commit 00189f17 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Enhance successfull dump detection

parent a0855a38
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment