mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Issue #283 target attribute is valid in html5
This commit is contained in:
@@ -2432,7 +2432,7 @@ class e_parser
|
|||||||
private $allowedAttributes = array(
|
private $allowedAttributes = array(
|
||||||
'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'),
|
'a' => array('id', 'href', 'style', 'class', 'title', 'target'),
|
||||||
'script' => array('type', 'src', 'language')
|
'script' => array('type', 'src', 'language')
|
||||||
);
|
);
|
||||||
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");
|
||||||
|
Reference in New Issue
Block a user