From 8527eec0f82cd42310396562d1c313e54a1007a1 Mon Sep 17 00:00:00 2001 From: favincen Date: Thu, 30 Oct 2025 00:02:51 +0100 Subject: [PATCH] fix testing MySQLBinDir --- setup/backup.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'"'; } }