From 066b27c9820b2fdea88bbcd05b2ee547087e00c6 Mon Sep 17 00:00:00 2001 From: Fabrice VINCENT Date: Thu, 13 Nov 2025 16:37:50 +0100 Subject: [PATCH] fix testing MySQLBinDir (#770) --- 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 5e9ffa197..86edd3e97 100644 --- a/setup/backup.class.inc.php +++ b/setup/backup.class.inc.php @@ -595,13 +595,13 @@ EOF; $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.'"'; } }