X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fredir.php;fp=mod%2Fredir.php;h=e448aa36d3f200eb52a61ebc81d103774d3460c0;hb=66a103e36a42ab251fd9ca6c4b56b54380e4d535;hp=8484b53ebab36af6b3db34e0f8e01b49305415c9;hpb=a41e49c84a3b799f4c511719516a7fbb9db9694f;p=friendica.git diff --git a/mod/redir.php b/mod/redir.php index 8484b53eba..e448aa36d3 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -56,7 +56,7 @@ function redir_init(App $a) { } if (remote_user()) { - $host = substr(System::baseUrl() . ($a->path ? '/' . $a->path : ''), strpos(System::baseUrl(), '://') + 3); + $host = substr(System::baseUrl() . ($a->urlpath ? '/' . $a->urlpath : ''), strpos(System::baseUrl(), '://') + 3); $remotehost = substr($contact['addr'], strpos($contact['addr'], '@') + 1); // On a local instance we have to check if the local user has already authenticated