A free, self-hostable news aggregator…
SimplePie fix for Atom feeds using namespace for type (#1893)
Alexandre Alapetitec96b5ff34a1c
diff --git a/lib/SimplePie/SimplePie/Misc.php b/lib/SimplePie/SimplePie/Misc.phpindex 40477c01e..1f338623c 100644--- a/lib/SimplePie/SimplePie/Misc.php+++ b/lib/SimplePie/SimplePie/Misc.php@@ -1928,9 +1928,18 @@ class SimplePie_Miscpublic 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':