summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-24 22:54:16 +0000
committerErmal <eri@pfsense.org>2010-05-24 22:54:16 +0000
commit0eb9b1b4a7f5c8455d5197fff121ddddfff4ad46 (patch)
treeea65101091840705de5bd0c019ddafbf47a9062f /usr/local/captiveportal
parent27588018f41b6935e0fdb4fc5d197eb56ce49e16 (diff)
downloadpfsense-0eb9b1b4a7f5c8455d5197fff121ddddfff4ad46.zip
pfsense-0eb9b1b4a7f5c8455d5197fff121ddddfff4ad46.tar.gz
Actually use the radius WISPr(4) attribute 'url_redirection' when present.
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 7a87312..5735a21 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -161,7 +161,10 @@ exit;
}
else if ($auth_list['auth_val'] == 3) {
captiveportal_logportalauth($_POST['auth_user'],$clientmac,$clientip,"FAILURE",$auth_list['reply_message']);
- portal_reply_page($redirurl, "error", $auth_list['reply_message']);
+ if (!empty($auth_list['url_redirection']))
+ header("Location: {$auth_list['url_redirection']}");
+ else
+ portal_reply_page($redirurl, "error", $auth_list['reply_message']);
}
} else {
captiveportal_logportalauth($_POST['auth_user'],$clientmac,$clientip,"ERROR");
@@ -239,6 +242,9 @@ function portal_mac_radius($clientmac,$clientip) {
if ($auth_list['auth_val'] == 2) {
return TRUE;
}
+ if (!empty($auth_list['url_redirection']))
+ header("Location: {$auth_list['url_redirection']}");
+
return FALSE;
}
OpenPOWER on IntegriCloud