]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Redir.php
spelling: however
[friendica.git] / src / Module / Contact / Redir.php
index 4b7360e47182ea626ef692b25ae1332d38f42aad..6780197555113672bc0522aaf30fcc0361ab3f45 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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