diff options
author | bcyrill <cyrill@bannwart.info> | 2012-12-15 17:05:40 +0100 |
---|---|---|
committer | bcyrill <cyrill@bannwart.info> | 2012-12-15 17:05:40 +0100 |
commit | eb258d395d79e36eb7b6e1a5ea5c98f1c203d0cc (patch) | |
tree | de0f94c3ab6f282c739c4a9445cde1d39a3bf6e5 /usr/local/captiveportal | |
parent | 59775347579805714483053d46396a5538e9d82f (diff) | |
download | pfsense-eb258d395d79e36eb7b6e1a5ea5c98f1c203d0cc.zip pfsense-eb258d395d79e36eb7b6e1a5ea5c98f1c203d0cc.tar.gz |
only trim the / if it is alone
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index af3fd11..5858174 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -49,7 +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 = rtrim(ltrim($_REQUEST['redirurl'], " "), " /"); +$orig_request = trim($_REQUEST['redirurl'], " "); +$orig_request = ($orig_request == '/') ? '' : $orig_request; $clientip = $_SERVER['REMOTE_ADDR']; if (!$clientip) { |