From b6494b8787677db1bafbbd0cb551da70e8843ad0 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Fri, 24 Sep 2010 00:03:43 -0600 Subject: Restore this code so the redirect after logging into the captive portal will work again. Ticket #918 --- usr/local/captiveportal/index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/local') diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 70188f6..c7a3ebe 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -79,6 +79,8 @@ if ($orig_host != $ourhostname) { } if (preg_match("/redirurl=(.*)/", $orig_request, $matches)) $redirurl = urldecode($matches[1]); +if ($_POST['redirurl']) + $redirurl = $_POST['redirurl']; if (!empty($config['captiveportal']['redirurl'])) $redirurl = $config['captiveportal']['redirurl']; -- cgit v1.1