Revision a9a90af6
Added by jeroen van breedam almost 6 years ago
src/usr/local/captiveportal/index.php | ||
---|---|---|
189 | 189 |
$passwd = $cpcfg['radmac_secret']; |
190 | 190 |
$context = 'radmac'; // Radius MAC authentication |
191 | 191 |
} elseif (!empty($_POST['auth_user2'])) { |
192 |
$user = $_POST['auth_user2'];
|
|
192 |
$user = trim($_POST['auth_user2']);
|
|
193 | 193 |
$passwd = $_POST['auth_pass2']; |
194 | 194 |
$context = 'second'; // Assume users to use the first context if auth_user2 is empty/does not exist |
195 | 195 |
} else { |
196 |
$user = $_POST['auth_user'];
|
|
196 |
$user = trim($_POST['auth_user']);
|
|
197 | 197 |
$passwd = $_POST['auth_pass']; |
198 | 198 |
$context = 'first'; |
199 | 199 |
} |
Also available in: Unified diff
add trim() to $_POST['auth_user'] & $_POST['auth_user2']
(cherry picked from commit 28a5469e25229ee0b922c7cd976cf510b73b5c7d)