Merge pull request #12659 from DanielSiepmann/12658-fix-feed-urls-with-whitespace
Properly handle feed item urls with surrounding whitespace
This commit is contained in:
commit
a7d0355849
|
@ -376,6 +376,7 @@ class Network
|
||||||
*/
|
*/
|
||||||
public static function addBasePath(string $url, string $basepath): string
|
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))) {
|
if (!empty(parse_url($url, PHP_URL_SCHEME)) || empty(parse_url($basepath, PHP_URL_SCHEME)) || empty($url) || empty(parse_url($url))) {
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user