diff --git a/setup/backup.class.inc.php b/setup/backup.class.inc.php index 5e9ffa1978..86edd3e978 100644 --- a/setup/backup.class.inc.php +++ b/setup/backup.class.inc.php @@ -595,13 +595,13 @@ public static function MakeSafeMySQLCommand($sMySQLBinDir, string $sCmd) $sMySQLCommand = $sCmd; } else { $sMySQLBinDir = escapeshellcmd($sMySQLBinDir); - $sMySQLCommand = '"'.$sMySQLBinDir.'/$sCmd"'; + $sMySQLCommand = $sMySQLBinDir.'/'.$sCmd; if (!file_exists($sMySQLCommand)) { throw new BackupException("$sCmd not found in $sMySQLBinDir"); } } - return $sMySQLCommand; + return '"'.$sMySQLCommand.'"'; } }