mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue