diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-06 22:57:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-06 22:57:42 +0000 |
commit | 08a75da9f2fcce6433620fe13e689e7514c14b11 (patch) | |
tree | 936cd8044cb0439a265b35a122f5d6a82f260579 | |
parent | e2c11bd449480693e7fe1da50b525e5ea5552925 (diff) | |
download | pfsense-packages-08a75da9f2fcce6433620fe13e689e7514c14b11.tar.gz pfsense-packages-08a75da9f2fcce6433620fe13e689e7514c14b11.tar.bz2 pfsense-packages-08a75da9f2fcce6433620fe13e689e7514c14b11.zip |
Add tags before and after encyrpted data
With-clarification-from: mgrooms
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 4 | ||||
-rw-r--r-- | packages/autoconfigbackup/upload_config_filter.php | 2 |
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 |