summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2012-12-15 16:51:59 +0100
committerbcyrill <cyrill@bannwart.info>2012-12-15 16:51:59 +0100
commit59775347579805714483053d46396a5538e9d82f (patch)
treed32ee8ac8cb7be29981740b3e26d6bb3c73c5599 /usr/local/captiveportal
parentb7ae00c0bc08a0cb51db8e74172e4c0a4350db4b (diff)
downloadpfsense-59775347579805714483053d46396a5538e9d82f.zip
pfsense-59775347579805714483053d46396a5538e9d82f.tar.gz
only trim the / at the end of the redirurl
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 154d34e..af3fd11 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -49,7 +49,7 @@ $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 = rtrim(ltrim($_REQUEST['redirurl'], " "), " /");
$clientip = $_SERVER['REMOTE_ADDR'];
if (!$clientip) {
OpenPOWER on IntegriCloud