aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-02-05 14:15:32 +0100
committerGravatar GitHub <noreply@github.com> 2022-02-05 14:15:32 +0100
commitcb36fe25a75b764e020760fd0d918bea13cadd13 (patch)
treeed5cb7555476798e34417fca71c5d0a15b6f7fab /lib/lib_rss.php
parentba1259bb2100a776ced28b3e068f17d97f3fd4fb (diff)
Improved: Fetch articles with selector but do not delete the class attribute. (Simplepie: new method: rename_attribute) (#4175)
* added to simplepie: rename_attributes * rename the class attribute * Update lib/SimplePie/SimplePie/Sanitize.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * added 'id' as attribute to rename to 'data-sanitized-id' * Update lib_rss.php * source code in sync with simplepie upstream * fixed parameters Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index bc4b06497..5b335e8d8 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -247,6 +247,7 @@ function customSimplePie($attributes = array()) {
'object', 'param', 'plaintext', 'script', 'style',
'svg', //TODO: Support SVG after sanitizing and URL rewriting of xlink:href
));
+ $simplePie->rename_attributes(array('id', 'class'));
$simplePie->strip_attributes(array_merge($simplePie->strip_attributes, array(
'autoplay', 'class', 'onload', 'onunload', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup',
'onmouseover', 'onmousemove', 'onmouseout', 'onfocus', 'onblur',