From 99d7d35d575e88d32001185fdb908d9b611d331f Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 27 Jul 2012 19:17:41 +0000 Subject: Put fix for IE 8/9 url handling bug --- usr/local/captiveportal/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 201a234..878386c 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -45,7 +45,8 @@ header("Pragma: no-cache"); header("Connection: close"); $orig_host = $_ENV['HTTP_HOST']; -$orig_request = $_REQUEST['redirurl']; +/* NOTE: IE 8/9 is buggy and that is why this is needed */ +$orig_request = trim($_REQUEST['redirurl'], " /"); $clientip = $_SERVER['REMOTE_ADDR']; if (!$clientip) { -- cgit v1.1