X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FNetwork.php;h=30c4798a5a985dc1db09d4545a04f73c7009d9d5;hb=e02c475c9e98f27f631bd245592f1641c181db72;hp=f9f32d42229fcf88392202960adbb26e84a10059;hpb=2f28ec7af0e2476c32a4d622e46e48fcbf33a8b3;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; }