Skip to content

Commit

Permalink
Put fix for IE 8/9 url handling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ermal committed Jul 27, 2012
1 parent 843f10c commit 99d7d35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/local/captiveportal/index.php
Expand Up @@ -45,7 +45,8 @@
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) {
Expand Down

0 comments on commit 99d7d35

Please sign in to comment.