mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use == false for better readability with file_is_for_platform() function
This commit is contained in:
parent
bce0292f2b
commit
c817023d33
@ -108,7 +108,7 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
|
||||
} else if ($mode == "upgrade") {
|
||||
if (is_uploaded_file($_FILES['ulfile']['tmp_name'])) {
|
||||
/* verify firmware image(s) */
|
||||
if (!file_is_for_platform($_FILES['ulfile']['tmp_name']) && !$_POST['sig_override'])
|
||||
if (file_is_for_platform($_FILES['ulfile']['tmp_name'] == false) && !$_POST['sig_override'])
|
||||
$input_errors[] = "The uploaded image file is not for this platform ({$g['platform']}).";
|
||||
else if (!file_exists($_FILES['ulfile']['tmp_name'])) {
|
||||
/* probably out of memory for the MFS */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user