aboutsummaryrefslogtreecommitdiff
path: root/lib/SimplePie
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-05-22 08:49:11 +0200
committerGravatar GitHub <noreply@github.com> 2018-05-22 08:49:11 +0200
commitc96b5ff34a1c9f2bd1697980d967429e3cd7d220 (patch)
tree7fff5c473da148691cbc57cdf3ab91400939486b /lib/SimplePie
parent8afce0753a9d96dd38ecfc7f15d63c0f4160671a (diff)
SimplePie fix for Atom feeds using namespace for type (#1893)
https://github.com/FreshRSS/FreshRSS/issues/1892
Diffstat (limited to 'lib/SimplePie')
-rw-r--r--lib/SimplePie/SimplePie/Misc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/SimplePie/SimplePie/Misc.php b/lib/SimplePie/SimplePie/Misc.php
index 40477c01e..1f338623c 100644
--- a/lib/SimplePie/SimplePie/Misc.php
+++ b/lib/SimplePie/SimplePie/Misc.php
@@ -1928,9 +1928,18 @@ class SimplePie_Misc
public static function atom_10_content_construct_type($attribs)
{
+ $type = '';
if (isset($attribs['']['type']))
{
- $type = strtolower(trim($attribs['']['type']));
+ $type = trim($attribs['']['type']);
+ }
+ elseif (isset($attribs[SIMPLEPIE_NAMESPACE_ATOM_10]['type']))
+ {//FreshRSS
+ $type = trim($attribs[SIMPLEPIE_NAMESPACE_ATOM_10]['type']);
+ }
+ if ($type != '')
+ {
+ $type = strtolower($type);
switch ($type)
{
case 'text':