]> git.mxchange.org Git - friendica.git/blobdiff - src/App/BaseURL.php
Improved http error handling
[friendica.git] / src / App / BaseURL.php
index 53f65ee55c2e7233f546b87ef31054837484c333..a7bfce2b1875c7ac99dd1ae1cf93605d01f9be4e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -232,7 +232,7 @@ class BaseURL
        {
                $parsed = @parse_url($url);
 
-               if (empty($parsed)) {
+               if (empty($parsed) || empty($parsed['host'])) {
                        return false;
                }