diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-06 22:49:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-06 22:49:33 +0000 |
commit | 4dc4f54bd00c1a871409495ad94cc2ab682c7a22 (patch) | |
tree | 12fbfdee215476d1db767a11cf11644c09fbb384 /packages/autoconfigbackup | |
parent | 445ce02f90e4e52aa30c438174a5d34d92149f0f (diff) | |
download | pfsense-packages-4dc4f54bd00c1a871409495ad94cc2ab682c7a22.tar.gz pfsense-packages-4dc4f54bd00c1a871409495ad94cc2ab682c7a22.tar.bz2 pfsense-packages-4dc4f54bd00c1a871409495ad94cc2ab682c7a22.zip |
Correct sha256 checkCVS: ----------------------------------------------------------------------
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 5d0765dc..32600bb8 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -118,7 +118,7 @@ if($_REQUEST['newver'] != "") { if(strlen($data) < 50) $input_errors[] = "The decrypted config.xml is under 50 characters, something went wrong. Aborting."; $ondisksha256 = trim(`/sbin/sha256 /tmp/config_restore.xml | awk '{ print $4 }'`); - if($sha256 != "0" || $sha256 != "") // we might not have a sha256 on file for older backups + if($sha256 != "0" && $sha256 != "") // we might not have a sha256 on file for older backups if($ondisksha256 <> $sha256) $input_errors[] = "SHA256 does not match, cannot restore. ({$sha256}) - ({$ondisksha256})"; if (curl_errno($curl_session)) { |