From a4b63e2c08d481866c1ba5cff9322d2124624d02 Mon Sep 17 00:00:00 2001 From: Rod Roark Date: Thu, 21 Jul 2011 16:26:27 -0700 Subject: [PATCH] Fixed mysql command syntax for configuration import under windows --- interface/main/backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/main/backup.php b/interface/main/backup.php index 47973a86a..a8b95994d 100644 --- a/interface/main/backup.php +++ b/interface/main/backup.php @@ -392,10 +392,10 @@ if ($form_step == 202) { if (move_uploaded_file($_FILES['userfile']['tmp_name'], $EXPORT_FILE)) { $form_status .= xl('Applying') . "...
"; echo nl2br($form_status); - $cmd = "$mysql_cmd -u " . escapeshellarg($sqlconf["login"]) . + $cmd = "$mysql_cmd -u" . escapeshellarg($sqlconf["login"]) . " -p" . escapeshellarg($sqlconf["pass"]) . " " . escapeshellarg($sqlconf["dbase"]) . - " < $EXPORT_FILE;"; + " < $EXPORT_FILE"; } else { echo xl('Internal error accessing uploaded file!'); -- 2.11.4.GIT