summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-24 17:00:39 +0000
committerErmal <eri@pfsense.org>2010-03-24 17:00:39 +0000
commita0116247ddcb7ac1ffc37a2d1ac967952171f4f3 (patch)
tree17a673652afd1608efe5467c4fb97189a2b62fe0 /usr/local/www/system_firmware.php
parent7554ab8ca355952a3048a8ee64c54810949cad7f (diff)
downloadpfsense-a0116247ddcb7ac1ffc37a2d1ac967952171f4f3.zip
pfsense-a0116247ddcb7ac1ffc37a2d1ac967952171f4f3.tar.gz
Ticket #318. Add an option to updater settings to allow updates for images with no signature. This makes auto-updater work and will not display an confirmation message during manual update.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 93fe96b..ed40a97 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -160,9 +160,9 @@ if ($_POST && !is_subsystem_dirty('firmwarelock')) {
if ($sigchk == 1)
$sig_warning = "The digital signature on this image is invalid.";
- else if ($sigchk == 2)
+ else if ($sigchk == 2 && !isset($config['system']['firmware']['allowinvalidsig']))
$sig_warning = "This image is not digitally signed.";
- else if (($sigchk == 3) || ($sigchk == 4))
+ else if (($sigchk >= 3))
$sig_warning = "There has been an error verifying the signature on this image.";
if (!verify_gzip_file("{$g['upload_path']}/firmware.tgz")) {
OpenPOWER on IntegriCloud