Skip to content

Commit 8527eec

Browse files
favincenjf-cbd
authored andcommitted
fix testing MySQLBinDir
1 parent 80d4e65 commit 8527eec

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)