]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Diaspora/Fetch.php
Move mod/receive to src/Module/Diaspora/receive
[friendica.git] / src / Module / Diaspora / Fetch.php
index bcb33e3359aebf18c04b4a754ca8ac61bbfe6c04..467d64566b769048d1f5a106866afcfa7c49754d 100644 (file)
@@ -41,6 +41,9 @@ class Fetch extends BaseModule
                        $item = Item::selectFirst(['author-link'], $condition);
                        if (empty($item)) {
                                $parts = parse_url($item["author-link"]);
+                               if (empty($parts["scheme"]) || empty($parts["host"])) {
+                                       throw new HTTPException\InternalServerErrorException();
+                               }
                                $host = $parts["scheme"] . "://" . $parts["host"];
 
                                if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {