mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-14 02:03:55 -04:00
Strip embedded SVG images for now (#2135)
Fix https://github.com/FreshRSS/FreshRSS/issues/2106 Proper SVG support would require custom sanitizing and URL rewriting of xlink:href, and is left for future work
This commit is contained in:
committed by
GitHub
parent
f26b8f3f31
commit
9f6919ae81
@@ -226,6 +226,7 @@ function customSimplePie($attributes = array()) {
|
||||
'font', 'form', 'frame', 'frameset', 'html',
|
||||
'link', 'input', 'marquee', 'meta', 'noscript',
|
||||
'object', 'param', 'plaintext', 'script', 'style',
|
||||
'svg', //TODO: Support SVG after sanitizing and URL rewriting of xlink:href
|
||||
));
|
||||
$simplePie->strip_attributes(array_merge($simplePie->strip_attributes, array(
|
||||
'autoplay', 'class', 'onload', 'onunload', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup',
|
||||
|
||||
Reference in New Issue
Block a user