From 59775347579805714483053d46396a5538e9d82f Mon Sep 17 00:00:00 2001 From: bcyrill Date: Sat, 15 Dec 2012 16:51:59 +0100 Subject: only trim the / at the end of the redirurl --- usr/local/captiveportal/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.1