Use single quotes around password
Password may contain characters, like `$` and `!`, that may be interpreted by the shell. Prevent it to happen by using single quotes.
This commit is contained in:
parent
f88ce37923
commit
5a3873ece4
1 changed files with 1 additions and 1 deletions
|
@ -873,7 +873,7 @@ sub mysql_setup {
|
|||
$mysqllogin = "-u $name";
|
||||
|
||||
if ( length($password) > 0 ) {
|
||||
$mysqllogin .= " -p\"$password\"";
|
||||
$mysqllogin .= " -p'$password'";
|
||||
}
|
||||
$mysqllogin .= $remotestring;
|
||||
my $loginstatus = `$mysqladmincmd ping $mysqllogin 2>&1`;
|
||||
|
|
Loading…
Reference in a new issue