From 011a64cde55fe8c76612206512259000a07fc3d6 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Wed, 22 Jan 2020 20:34:07 +0100 Subject: [PATCH] Make non-deterministic redirect in case of unknown visitor for redir.php dynamic --- mod/redir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/redir.php b/mod/redir.php index 5bfed1c114..1d36065e99 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -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 -- 2.39.5