Skip to content

Commit

Permalink
Fixing import bug in backup.php. (#4329)
Browse files Browse the repository at this point in the history
Configuration Import was trying to use mysqldump instead of mysql, causing it to fail. This fixes that.
  • Loading branch information
sunsetsystems authored and bradymiller committed Apr 7, 2021
1 parent 9be2313 commit 8347f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/main/backup.php
Expand Up @@ -553,7 +553,7 @@ function gzopen($filename, $mode, $use_include_path = 0)
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $EXPORT_FILE)) {
$form_status .= xla('Applying') . "...<br />";
echo nl2br($form_status);
$cmd = escapeshellcmd($mysql_dump_cmd) . " -u " . escapeshellarg($sqlconf["login"]) .
$cmd = escapeshellcmd($mysql_cmd) . " -u " . escapeshellarg($sqlconf["login"]) .
" -p" . escapeshellarg($sqlconf["pass"]) .
" -h " . escapeshellarg($sqlconf["host"]) .
" --port=" . escapeshellarg($sqlconf["port"]) .
Expand Down

0 comments on commit 8347f0d

Please sign in to comment.