From 9142e3400b22dd38e59c3f5600c8d0a2e1f1870b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Aug 2012 00:33:37 +0200 Subject: [PATCH] Fix: [ bug #254 ] Database backup not working with complex passwords --- htdocs/admin/tools/export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php index fe686d85bd1..5a1b4bdff9d 100644 --- a/htdocs/admin/tools/export.php +++ b/htdocs/admin/tools/export.php @@ -158,7 +158,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 ''.$langs->trans("RunCommandSummary").':
'."\n";