Project

General

Profile

« Previous | Next » 

Revision adbb495c

Added by Ermal LUÇI almost 14 years ago

Fix redirurl collection so after login the user can be redirected correctly

View differences:

usr/local/captiveportal/index.php
77 77

  
78 78
    exit;
79 79
}
80
if (preg_match("/redirurl=(.*)/", $orig_request, $matches))
81
    $redirurl = urldecode($matches[1]);
82
if ($_POST['redirurl'])
83
    $redirurl = $_POST['redirurl'];
84 80
if (!empty($config['captiveportal']['redirurl']))
85 81
	$redirurl = $config['captiveportal']['redirurl'];
82
else if (preg_match("/redirurl=(.*)/", $orig_request, $matches))
83
	$redirurl = urldecode($matches[1]);
84
else if ($_REQUEST['redirurl'])
85
	$redirurl = $_REQUEST['redirurl'];
86 86

  
87 87
$macfilter = !isset($config['captiveportal']['nomacfilter']);
88 88
$passthrumac = isset($config['captiveportal']['passthrumacadd']);

Also available in: Unified diff