From f24ffa8ef0bbda13c12f130a413a8660fff45493 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 1 May 2012 17:10:26 -0700 Subject: [PATCH] improve handling of relative feed url's --- include/Scrape.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Scrape.php b/include/Scrape.php index b20d7d6046..2272526009 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -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'); -- 2.39.5