diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 06:09:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 06:09:04 +0000 |
commit | df0631d17b5f5c710dc43171bea937c2a188b01e (patch) | |
tree | 5f35f1fa4abd8e313e5b7c5e927a65d4ca426fe0 /usr | |
parent | 563f5b510631a8c6454e1dfa323d6477f4e7ecbc (diff) | |
download | pfsense-df0631d17b5f5c710dc43171bea937c2a188b01e.zip pfsense-df0631d17b5f5c710dc43171bea937c2a188b01e.tar.gz |
Recognize 404 errors correctly
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_firmware_check.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php index fa60ec5..903cd79 100755 --- a/usr/local/www/system_firmware_check.php +++ b/usr/local/www/system_firmware_check.php @@ -120,6 +120,12 @@ else update_status("Downloading current version information..."); $latest_version = download_file_with_progress_bar("{$updater_url}/version", "/tmp/{$g['product_name']}_version"); +if(strstr($latest_version,"404")) { + update_output_window("Could not download version information file {$updater_url}/version"); + include("fend.inc"); + exit; +} + $current_installed_pfsense_version = str_replace("\n", "", file_get_contents("/etc/version")); $latest_version = str_replace("\n", "", file_get_contents("/tmp/{$g['product_name']}_version")); |