diff options
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 0b86e84..72f4749 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -49,8 +49,8 @@ $cpcfg = $config['captiveportal'][$cpzone]; $orig_host = $_ENV['HTTP_HOST']; /* NOTE: IE 8/9 is buggy and that is why this is needed */ -$orig_request = trim($_REQUEST['redirurl'], " "); -$orig_request = ($orig_request == '/') ? '' : $orig_request; +$orig_request = rtrim($_REQUEST['redirurl'], " /"); +$orig_request = empty($orig_request) ? '' : $orig_request; $clientip = $_SERVER['REMOTE_ADDR']; if (!$clientip) { |