mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:40:16 +00:00
probe for very old (0.97 or 1.0) RSS feed with an incorrect or generic content-type
This commit is contained in:
parent
bd2c8c92f1
commit
58e3372b23
2 changed files with 6 additions and 1 deletions
2
boot.php
2
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 );
|
||||
|
||||
|
|
|
@ -255,6 +255,11 @@ function scrape_feed($url) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// perhaps an RSS version 1 feed with a generic or incorrect content-type?
|
||||
if(stristr($s,'</item>')) {
|
||||
$ret['feed_rss'] = $url;
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue