aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup
diff options
context:
space:
mode:
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php4
-rw-r--r--packages/autoconfigbackup/upload_config_filter.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index cdf42ed2..b52fa3b6 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -65,8 +65,8 @@ if($_REQUEST['newver'] != "") {
curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($curl_session);
- //if (!tagfile_deformat($data, $data, "config.xml"))
- //$input_errors[] = "The downloaded file does not appear to contain an encrypted pfSense configuration.";
+ if (!tagfile_deformat($data, $data, "config.xml"))
+ $input_errors[] = "The downloaded file does not appear to contain an encrypted pfSense configuration.";
$data = decrypt_data($data, $decrypt_password);
$fd = fopen("/tmp/config_restore.xml", "w");
fwrite($fd, $data);
diff --git a/packages/autoconfigbackup/upload_config_filter.php b/packages/autoconfigbackup/upload_config_filter.php
index 6f1a3f2b..ed240749 100644
--- a/packages/autoconfigbackup/upload_config_filter.php
+++ b/packages/autoconfigbackup/upload_config_filter.php
@@ -41,7 +41,7 @@ if($last_backup_date <> $last_config_change) {
$post_fields = array(
'reason' => urlencode($reason),
'hostname' => urlencode($hostname),
- 'configxml' => urlencode($configxml)
+ 'configxml' => urlencode($data)
);
//url-ify the data for the POST