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

Fix: [ bug #254 ] Database backup not working with complex passwords

parent 8bcb90fc
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ if ($what == 'mysql')
if (! empty($dolibarr_main_db_pass))
{
$paramcrypted.=' -p"'.preg_replace('/./i','*',$dolibarr_main_db_pass).'"';
$paramclear.=' -p"'.str_replace('"','\"',$dolibarr_main_db_pass).'"';
$paramclear.=' -p"'.str_replace(array('"','`'),array('\"','\`'),$dolibarr_main_db_pass).'"';
}
print '<b>'.$langs->trans("RunCommandSummary").':</b><br>'."\n";
......
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