Skip to content

Commit fbee01f

Browse files
committed
fix testing MySQLBinDir
1 parent 775ac3d commit fbee01f

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
@@ -635,13 +635,13 @@ public static function MakeSafeMySQLCommand($sMySQLBinDir, string $sCmd)
635635
}
636636
else {
637637
$sMySQLBinDir = escapeshellcmd($sMySQLBinDir);
638-
$sMySQLCommand = '"'.$sMySQLBinDir.'/$sCmd"';
638+
$sMySQLCommand = $sMySQLBinDir.'/'.$sCmd;
639639
if (!file_exists($sMySQLCommand)) {
640640
throw new BackupException("$sCmd not found in $sMySQLBinDir");
641641
}
642642
}
643643

644-
return $sMySQLCommand;
644+
return '"'.$sMySQLCommand.'"';
645645
}
646646
}
647647

0 commit comments

Comments
 (0)