Skip to content
Snippets Groups Projects
Commit 5c1cc9a5 authored by Will Spooner's avatar Will Spooner
Browse files

Quoted the mysql password so that it is shell-safe

parent 7b7d27da
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ sub backup_attribute_types {
my ( $host, $user, $pass, $port, $dbname ) = @_;
unless (
system( "mysql -h$host -P$port -u$user -p$pass -N "
system( "mysql -h$host -P$port -u$user -p'$pass' -N "
. "-e 'select * from attrib_type' $dbname "
. "> $dbname.attrib_type.backup; "
. "gzip -9 -f $dbname.attrib_type.backup"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment