Browse Source

also accept application/xml as RSS feeds

pull/78/head v1.5.1
Aaron Parecki 5 years ago
parent
commit
b074d652e0
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/XRay/Feeds.php

+ 1
- 1
lib/XRay/Feeds.php View File

@ -59,7 +59,7 @@ class Feeds {
'type' => 'atom'
];
} elseif(strpos($contentType, 'application/rss+xml') !== false || strpos($contentType, 'text/xml') !== false
|| strpos(substr($body, 0, 50), '<rss ') !== false) {
|| strpos($contentType, 'application/xml') !== false || strpos(substr($body, 0, 50), '<rss ') !== false) {
$feeds[] = [
'url' => $result['url'],
'type' => 'rss'

Loading…
Cancel
Save