Make non-deterministic redirect in case of unknown visitor for redir.php dynamic
authornupplaPhil <admin@philipp.info>
Wed, 22 Jan 2020 19:34:07 +0000 (20:34 +0100)
committernupplaPhil <admin@philipp.info>
Wed, 22 Jan 2020 19:34:07 +0000 (20:34 +0100)
mod/redir.php

index 5bfed1c..1d36065 100644 (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