X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fredir.php;h=8f112a3c5d24938d83d8dd4b16df8ff14f6ff332;hb=daa1177e3a1e42b4c95e0a8759f1610942b952c7;hp=8484b53ebab36af6b3db34e0f8e01b49305415c9;hpb=22816c49a1972fff2e201dd66ac59b80624ee8aa;p=friendica.git diff --git a/mod/redir.php b/mod/redir.php index 8484b53eba..8f112a3c5d 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -3,6 +3,7 @@ use Friendica\App; use Friendica\Core\L10n; use Friendica\Core\System; +use Friendica\Database\dba; use Friendica\Database\DBM; use Friendica\Model\Contact; use Friendica\Model\Profile; @@ -56,7 +57,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