summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-05-08 23:44:09 +0200
committeremkael <emkael@tlen.pl>2018-05-08 23:44:09 +0200
commit34f5872e343994c8686f3c7c70f930de2dd2f432 (patch)
tree3ffd0f1bf02a7345c0f4a0f4975d43d03046ecaf /providers
parent0d0892583cf801801fee410b1b9d8d3594235170 (diff)
"Sanitizing" incorrect namespaces on RSS proxy provider
Diffstat (limited to 'providers')
-rw-r--r--providers/Rss.php2
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);