summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-19 22:02:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-19 22:02:31 +0000
commitdd0005eaae27dd8f5278472e42311802c24b2a9e (patch)
tree15413171e5c9fc6c030764f1d553e59f4dac6583 /usr/local/www/system_firmware.php
parent2cd9e4df384affbd305a34e472d43f15e5d25347 (diff)
downloadpfsense-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.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php10
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>&nbsp;
OpenPOWER on IntegriCloud