]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Merge pull request #5912 from MrPetovan/bug/fix-code-tag-nonsense
[friendica.git] / mod / redir.php
index 3acf960dab7b2556218dd2ed7a2a52d1501ff4fe..e989ad015a83045b5f98ce9e202e416bce03731a 100644 (file)
@@ -57,7 +57,7 @@ function redir_init(App $a) {
                }
 
                if (remote_user()) {
-                       $host = substr(System::baseUrl() . ($a->urlpath ? '/' . $a->urlpath : ''), strpos(System::baseUrl(), '://') + 3);
+                       $host = substr(System::baseUrl() . ($a->getURLPath() ? '/' . $a->getURLPath() : ''), 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