Empty sql backups
Reported by email:
"Hey,
Just checked one of our servers and found that the sql backup files were empty, running the backup manually prints the following error:
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
echo'ing the command out shows that the escapeshellcmd is escaping characters in the password which is causing for the password to be changed. To sanitize the password we only should need to ensure that any terminating quotes are escaped.
addcslashes should work for our this :)"