]> git.mxchange.org Git - friendica.git/blobdiff - mod/fetch.php
normalise_link calls
[friendica.git] / mod / fetch.php
index 4e7d8c751afc43dde451e77608321dcc4c40acbc..9336c140475ef0b0b8edc102c9e5f07aa6aa59e7 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\System;
 use Friendica\Protocol\Diaspora;
 use Friendica\Model\Item;
 use Friendica\Model\User;
+use Friendica\Util\Strings;
 use Friendica\Util\XML;
 use Friendica\Database\DBA;
 
@@ -35,7 +36,7 @@ function fetch_init(App $a)
                        $parts = parse_url($item["author-link"]);
                        $host = $parts["scheme"]."://".$parts["host"];
 
-                       if (normalise_link($host) != normalise_link(System::baseUrl())) {
+                       if (Strings::normaliseLink($host) != Strings::normaliseLink(System::baseUrl())) {
                                $location = $host."/fetch/".$a->argv[1]."/".urlencode($guid);
 
                                header("HTTP/1.1 301 Moved Permanently");