Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password with special characters gives syntax error #5

Open
DFF-fred opened this issue Jul 16, 2019 · 1 comment
Open

password with special characters gives syntax error #5

DFF-fred opened this issue Jul 16, 2019 · 1 comment
Assignees
Labels

Comments

@DFF-fred
Copy link

I have all kinds of random password containing characters such as "(" or others. The "(" gives me this error:
sh: -c: line 0: syntax error near unexpected token (' sh: -c: line 0: mysqldump db -h localhost --port 3307 -u user -pr!(7!)fGtlo% | gzip > ~/backups/files//db_date-01.sql.bz2'
Other passwords have generated failed backups with unclear error messages. I've updated line 151 of backup_db.php from:
$params[] = '-p'.$this->_db_passwd;
to:
$params[] = "-p'".$this->_db_passwd."'";
and it seems to be now working for me.

I'll look into the recent secure password addition fix as well.. thank you.

@lysender lysender self-assigned this Jul 16, 2019
@lysender lysender added the bug label Jul 16, 2019
@lysender
Copy link
Owner

Hmm, escaping parameters. I haven't really considered that when I wrote this script several years ago. Will review and see if I can implement it quick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants