mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Issue #450 - YouTube iframe arc attribute fix.
This commit is contained in:
@@ -2495,7 +2495,8 @@ class e_parser
|
|||||||
'default' => array('id', 'style', 'class'),
|
'default' => array('id', 'style', 'class'),
|
||||||
'img' => array('id', 'src', 'style', 'class', 'alt', 'title', 'width', 'height'),
|
'img' => array('id', 'src', 'style', 'class', 'alt', 'title', 'width', 'height'),
|
||||||
'a' => array('id', 'href', 'style', 'class', 'title', 'target'),
|
'a' => array('id', 'href', 'style', 'class', 'title', 'target'),
|
||||||
'script' => array('type', 'src', 'language')
|
'script' => array('type', 'src', 'language'),
|
||||||
|
'iframe' => array('id', 'src', 'frameborder', 'class', 'width', 'height', 'style')
|
||||||
);
|
);
|
||||||
private $badAttrValues = array("javascript[\s]*?:","alert\(","vbscript[\s]*?:","data:text\/html", "mhtml[\s]*?:", "data:[\s]*?image");
|
private $badAttrValues = array("javascript[\s]*?:","alert\(","vbscript[\s]*?:","data:text\/html", "mhtml[\s]*?:", "data:[\s]*?image");
|
||||||
private $allowedTags = array('html', 'body','div','a','img','table','tr', 'td', 'th', 'tbody', 'thead', 'colgroup', 'b',
|
private $allowedTags = array('html', 'body','div','a','img','table','tr', 'td', 'th', 'tbody', 'thead', 'colgroup', 'b',
|
||||||
|
Reference in New Issue
Block a user