]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Redir.php
spelling: however
[friendica.git] / src / Module / Contact / Redir.php
index 5457b7442734970785055c99a25f20ca8bdc9a47..6780197555113672bc0522aaf30fcc0361ab3f45 100644 (file)
@@ -166,7 +166,7 @@ class Redir extends \Friendica\BaseModule
                }
 
                if ($this->session->getRemoteUserId()) {
-                       $host       = substr($this->baseUrl->getUrlPath() . ($this->baseUrl->getUrlPath() ? '/' . $this->baseUrl->getUrlPath() : ''), strpos($this->baseUrl->getUrlPath(), '://') + 3);
+                       $host       = substr($this->baseUrl->getPath() . ($this->baseUrl->getPath() ? '/' . $this->baseUrl->getPath() : ''), strpos($this->baseUrl->getPath(), '://') + 3);
                        $remotehost = substr($contact['addr'], strpos($contact['addr'], '@') + 1);
 
                        // On a local instance we have to check if the local user has already authenticated