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:
Hypolite Petovan 2023-01-12 07:57:30 -05:00 committed by GitHub
commit a7d0355849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}