Merge pull request #8154 from nupplaphil/bug/7998-redirect
Make non-deterministic redirect for redir.php dynamic
This commit is contained in:
commit
debf5726f5
|
@ -150,7 +150,7 @@ function redir_magic($a, $cid, $url)
|
||||||
// We don't use magic auth when there is no visitor, we are on the same system or we visit our own stuff
|
// We don't use magic auth when there is no visitor, we are on the same system or we visit our own stuff
|
||||||
if (empty($visitor) || Strings::compareLink($basepath, DI::baseUrl()) || Strings::compareLink($contact_url, $visitor)) {
|
if (empty($visitor) || Strings::compareLink($basepath, DI::baseUrl()) || Strings::compareLink($contact_url, $visitor)) {
|
||||||
Logger::info('Redirecting without magic', ['target' => $target_url, 'visitor' => $visitor, 'contact' => $contact_url]);
|
Logger::info('Redirecting without magic', ['target' => $target_url, 'visitor' => $visitor, 'contact' => $contact_url]);
|
||||||
System::externalRedirect($target_url);
|
DI::app()->redirect($target_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test for magic auth on the target system
|
// Test for magic auth on the target system
|
||||||
|
|
Loading…
Reference in a new issue