diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-19 22:02:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-19 22:02:31 +0000 |
commit | dd0005eaae27dd8f5278472e42311802c24b2a9e (patch) | |
tree | 15413171e5c9fc6c030764f1d553e59f4dac6583 | |
parent | 2cd9e4df384affbd305a34e472d43f15e5d25347 (diff) | |
download | pfsense-dd0005eaae27dd8f5278472e42311802c24b2a9e.zip pfsense-dd0005eaae27dd8f5278472e42311802c24b2a9e.tar.gz |
Fix firmware upgrade. This now works again on mini_httpd.
This is considered temporary until we can fix lighty to work correctly.
-rwxr-xr-x | usr/local/www/system_firmware.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index b79133c..c0c8a78 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -164,12 +164,8 @@ print_info_box($sig_warning); <?php else: ?> <?php if (!file_exists($d_firmwarelock_path)): ?> <?php - - $ip = split(":", $_SERVER['PHP_SELF']); - $myip = $ip[0] . $ip[1]; - - ?> - + $myip = "http://{$_SERVER['SERVER_NAME']}:8041/system_firmware.php"; + ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> @@ -205,7 +201,7 @@ print_info_box($sig_warning); </form> <?php if(file_exists($d_fwupenabled_path)) { - echo "<form action=\"http:/{$myip}:8041\" method=\"post\" enctype=\"multipart/form-data\">"; + echo "<form action=\"{$myip}\" method=\"post\" enctype=\"multipart/form-data\">"; } ?> <strong>Firmware image file: </strong> |