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)
|
if(! $basename)
|
||||||
$basename = substr($url,0,strrpos($url,'/')) . '/';
|
$basename = implode('/', array_slice(explode('/',$url),0,3)) . '/';
|
||||||
|
|
||||||
$items = $dom->getElementsByTagName('link');
|
$items = $dom->getElementsByTagName('link');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue