mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
improve handling of relative feed url's
This commit is contained in:
parent
6914bdce17
commit
f24ffa8ef0
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ function scrape_feed($url) {
|
|||
}
|
||||
}
|
||||
if(! $basename)
|
||||
$basename = substr($url,0,strrpos($url,'/')) . '/';
|
||||
$basename = implode('/', array_slice(explode('/',$url),0,3)) . '/';
|
||||
|
||||
$items = $dom->getElementsByTagName('link');
|
||||
|
||||
|
|
Loading…
Reference in a new issue