X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fredir.php;h=ba1b7e13b6a9f45cfe957c57816e31f553942f56;hb=6f70d21e07f5ae3ad96efe7c399db17ad390b73a;hp=a158f31798cdf01313268c616e608b506ead8e05;hpb=7fb9e1c7c8f5f4887e44aadf6115b68c6cc66d03;p=friendica.git diff --git a/mod/redir.php b/mod/redir.php index a158f31798..ba1b7e13b6 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -1,6 +1,6 @@ redirect($target_url); } } @@ -93,7 +95,7 @@ function redir_init(App $a) { // Remote user is already authenticated. redir_check_url($contact_url, $url); $target_url = $url ?: $contact_url; - Logger::log($contact['name'] . " is already authenticated. Redirecting to " . $target_url, Logger::DEBUG); + Logger::info($contact['name'] . " is already authenticated. Redirecting to " . $target_url); $a->redirect($target_url); } } @@ -112,7 +114,7 @@ function redir_init(App $a) { $url .= $separator . 'zrl=' . urlencode($my_profile); } - Logger::log('redirecting to ' . $url, Logger::DEBUG); + Logger::info('redirecting to ' . $url); $a->redirect($url); } @@ -142,7 +144,7 @@ function redir_magic($a, $cid, $url) } // Test for magic auth on the target system - $serverret = DI::httpClient()->get($basepath . '/magic'); + $serverret = DI::httpClient()->head($basepath . '/magic', [HttpClientOptions::ACCEPT_CONTENT => HttpClientAccept::HTML]); if ($serverret->isSuccess()) { $separator = strpos($target_url, '?') ? '&' : '?'; $target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);