From: friendica Date: Fri, 2 Mar 2012 02:49:23 +0000 (-0800) Subject: probe for very old (0.97 or 1.0) RSS feed with an incorrect or generic content-type X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58e3372b23b286334e5195b1b8f70448715ed493;p=friendica.git probe for very old (0.97 or 1.0) RSS feed with an incorrect or generic content-type --- diff --git a/boot.php b/boot.php index aee236de33..d3da853fa9 100755 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '2.3.1267' ); +define ( 'FRIENDICA_VERSION', '2.3.1268' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DB_UPDATE_VERSION', 1130 ); diff --git a/include/Scrape.php b/include/Scrape.php index 4c4ad3cdb9..8344aa7373 100755 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -255,6 +255,11 @@ function scrape_feed($url) { } } } + // perhaps an RSS version 1 feed with a generic or incorrect content-type? + if(stristr($s,'')) { + $ret['feed_rss'] = $url; + return $ret; + } } try {