summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-03 19:40:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-03 19:40:04 +0000
commiteb0f441c33f992846a4a4aec2b037172ff085fa1 (patch)
treef5f78fe4e9f75baaf7b9b2bd3159489f882e3f5c /usr/local/captiveportal
parentc54d236c00a12dc978dbb717e83a35103cd0c3a2 (diff)
downloadpfsense-eb0f441c33f992846a4a4aec2b037172ff085fa1.zip
pfsense-eb0f441c33f992846a4a4aec2b037172ff085fa1.tar.gz
Fix captive portal redirects now that we are using LightHTTPD
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index bf4ab74..ffa4e5d 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -41,7 +41,7 @@ header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$orig_host = $_ENV['HTTP_HOST'];
-$orig_request = $_ENV['CAPTIVE_REQPATH'];
+$orig_request = $_GET['redirurl'];
$lockfile = "{$g['varrun_path']}/captiveportal.lock";
$clientip = $_SERVER['REMOTE_ADDR'];
@@ -166,9 +166,14 @@ EOD;
$redirurl = "http://{$orig_host}{$orig_request}";
$htmltext = str_replace("\$PORTAL_REDIRURL\$", htmlspecialchars($redirurl), $htmltext);
+ echo "<p>Orig_host = {$orig_host} \n";
+ echo "<p>Orig_request = {$orig_request} \n";
+ echo "<p>redirurl = {$redirurl} \n";
+
echo $htmltext;
}
+
exit;
function portal_mac_fixed($clientmac) {
OpenPOWER on IntegriCloud