Make non-deterministic redirect in case of unknown visitor for redir.php dynamic

This commit is contained in:
Philipp Holzer 2020-01-22 20:34:07 +01:00
parent 4f29e4c4a7
commit 011a64cde5
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 1 additions and 1 deletions

View File

@ -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
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]);
System::externalRedirect($target_url);
DI::app()->redirect($target_url);
}
// Test for magic auth on the target system