diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index b5d433d..9ca6a3a 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -980,11 +980,11 @@ function make_dirs($path, $mode = 0755) * auto_upgrade(): Upgrade pfSense to the latest firmware version. */ function auto_upgrade() { - global $config; + global $config, $g; $http_auth_username = ""; $http_auth_password = ""; - if($config['system']['proxy_auth_username']) $http_auth_username = $config['system']['proxy_auth_username']; - if($config['system']['proxy_auth_password']) $http_auth_password = $config['system']['proxy_auth_password']; + if($config['system']['proxy_auth_username'] <> "") $http_auth_username = $config['system']['proxy_auth_username']; + if($config['system']['proxy_auth_password'] <> "") $http_auth_password = $config['system']['proxy_auth_password']; if (isset($config['system']['alt_firmware_url']['enabled'])) { $firmwareurl=$config['system']['alt_firmware_url']['firmware_base_url']; $firmwarename=$config['system']['alt_firmware_url']['firmware_filename']; @@ -1031,12 +1031,12 @@ function check_firmware_version() { $resp .= $line; } } - + fclose($rfd); - + if($_GET['autoupgrade'] <> "") return; - + return $resp; } |