Skip to content

Commit 066b27c

Browse files
authored
fix testing MySQLBinDir (#770)
1 parent 283de1e commit 066b27c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/backup.class.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,13 +595,13 @@ public static function MakeSafeMySQLCommand($sMySQLBinDir, string $sCmd)
595595
$sMySQLCommand = $sCmd;
596596
} else {
597597
$sMySQLBinDir = escapeshellcmd($sMySQLBinDir);
598-
$sMySQLCommand = '"'.$sMySQLBinDir.'/$sCmd"';
598+
$sMySQLCommand = $sMySQLBinDir.'/'.$sCmd;
599599
if (!file_exists($sMySQLCommand)) {
600600
throw new BackupException("$sCmd not found in $sMySQLBinDir");
601601
}
602602
}
603603

604-
return $sMySQLCommand;
604+
return '"'.$sMySQLCommand.'"';
605605
}
606606
}
607607

0 commit comments

Comments
 (0)