diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-06 21:14:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-06 21:14:52 +0000 |
commit | 078975d81e2dd2c8fefd1fadc098b71e116b27df (patch) | |
tree | cd467e19d1cbecfd70af9fdbf1f080e7a8e3eb83 /packages/autoconfigbackup | |
parent | cf46bad4effee4a243a4be1033244c03026907d8 (diff) | |
download | pfsense-packages-078975d81e2dd2c8fefd1fadc098b71e116b27df.tar.gz pfsense-packages-078975d81e2dd2c8fefd1fadc098b71e116b27df.tar.bz2 pfsense-packages-078975d81e2dd2c8fefd1fadc098b71e116b27df.zip |
Compare against blank 0 or ""
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 4a40d8c4..ff328c64 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -115,7 +115,7 @@ if($_REQUEST['newver'] != "") { fwrite($fd, $data); fclose($fd); $ondisksha256 = trim(`/sbin/sha256 /tmp/config_restore.xml | awk '{ print $4 }'`); - if($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)) { |