Fix: [ bug #254 ] Database backup not working with complex passwords
This commit is contained in:
parent
8bcb90fcd0
commit
bda132b07f
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user