X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FNetwork.php;h=30c4798a5a985dc1db09d4545a04f73c7009d9d5;hb=359ad6ff5ab4c178591af01e35b5f8bb40380b84;hp=f9f32d42229fcf88392202960adbb26e84a10059;hpb=24c32cff0dcd38d5aa509208f5f17abb05a8b140;p=friendica.git diff --git a/src/Util/Network.php b/src/Util/Network.php index f9f32d4222..30c4798a5a 100644 --- a/src/Util/Network.php +++ b/src/Util/Network.php @@ -376,6 +376,7 @@ class Network */ public static function addBasePath(string $url, string $basepath): string { + $url = trim($url); if (!empty(parse_url($url, PHP_URL_SCHEME)) || empty(parse_url($basepath, PHP_URL_SCHEME)) || empty($url) || empty(parse_url($url))) { return $url; }