mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 05:15:56 +00:00
detect whether browser supports iframe.sandbox and allow iframes accordingly; allow object and embed elements
This commit is contained in:
@@ -2626,7 +2626,9 @@
|
||||
|
||||
$allowed_elements = array('p', 'br', 'div', 'table', 'tr', 'td', 'th',
|
||||
'ul', 'ol', 'li', 'blockquote', 'span', 'html', 'body', 'a', 'img',
|
||||
'iframe', 'video', 'audio', 'source');
|
||||
'video', 'audio', 'source', 'object', 'embed');
|
||||
|
||||
if ($_SESSION['hasSandbox']) array_push($allowed_elements, 'iframe');
|
||||
|
||||
$disallowed_attributes = array('id', 'style', 'class');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user