diff options
author | emkael <emkael@tlen.pl> | 2018-05-08 23:44:09 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-05-08 23:44:09 +0200 |
commit | 34f5872e343994c8686f3c7c70f930de2dd2f432 (patch) | |
tree | 3ffd0f1bf02a7345c0f4a0f4975d43d03046ecaf /providers | |
parent | 0d0892583cf801801fee410b1b9d8d3594235170 (diff) |
"Sanitizing" incorrect namespaces on RSS proxy provider
Diffstat (limited to 'providers')
-rw-r--r-- | providers/Rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/Rss.php b/providers/Rss.php index d12bc98..f2fc015 100644 --- a/providers/Rss.php +++ b/providers/Rss.php @@ -37,7 +37,7 @@ class Rss extends \Providers\Provider { protected function _mapItems($content) { $items = []; foreach ($content as $contentString) { - $item = new \SimpleXMLElement(str_replace('content:encoded>', 'content>', $contentString)); + $item = new \SimpleXMLElement(str_replace(['content:encoded>', '<media:', '</media:'], ['content>', '<', '</'], $contentString)); $itemObject = new Item(); $itemObject->ID = strval($item->id ?: $item->guid); $itemObject->Title = strval($item->title); |