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 /packages/autoconfigbackup/autoconfigbackup.php | |
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
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 4 |
1 files changed, 2 insertions, 2 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); |