mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not allow nonstop redirects to self
This commit is contained in:
parent
979f35f364
commit
3bc77cd370
@ -458,7 +458,7 @@ document.location.href="{$my_redirurl}";
|
||||
|
||||
EOD;
|
||||
} else {
|
||||
if($_POST['ORIGINAL_PORTAL_IP']) {
|
||||
if($_POST['ORIGINAL_PORTAL_IP'] && $_SERVER['SERVER_NAME'] != $_POST['ORIGINAL_PORTAL_IP']) {
|
||||
header ('HTTP/1.1 301 Moved Permanently');
|
||||
header("Location: " . $_POST['ORIGINAL_PORTAL_IP']);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user