improve handling of relative feed url's

This commit is contained in:
friendica 2012-05-01 17:10:26 -07:00
parent 6914bdce17
commit f24ffa8ef0
1 changed files with 1 additions and 1 deletions

View File

@ -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');