X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fredir.php;h=56cb13a06b97bc24adaf9005ad27b9f50086592c;hb=79803a6546dd251f6fee557434816a39bc1fb7ce;hp=5bfed1c114749ca68da9c54e06080ed8480be251;hpb=ab8997f9db910ba70c592bf106a7f5fc41a55b2d;p=friendica.git diff --git a/mod/redir.php b/mod/redir.php index 5bfed1c114..56cb13a06b 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -1,4 +1,23 @@ . + * + */ use Friendica\App; use Friendica\Core\Logger; @@ -150,7 +169,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