1
0
Fork 0

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

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