From aa32c88d3a55b1cc45b89998e650df4a2943e362 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 2 Jan 2013 15:38:49 +0000 Subject: USe rtrim here as that it the meaning. This should unbreak the issues on 2.0.2 with CP --- usr/local/captiveportal/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 878386c..77e4d44 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -46,7 +46,7 @@ header("Connection: close"); $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($_REQUEST['redirurl'], " /"); $clientip = $_SERVER['REMOTE_ADDR']; if (!$clientip) { -- cgit v1.1