mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #4128 whitelist 'rel' attribute on a tags.
This commit is contained in:
@@ -3823,7 +3823,7 @@ class e_parser
|
|||||||
protected $allowedAttributes = array(
|
protected $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', 'target'),
|
'a' => array('id', 'href', 'style', 'class', 'title', 'target', 'rel'),
|
||||||
'script' => array('type', 'src', 'language', 'async'),
|
'script' => array('type', 'src', 'language', 'async'),
|
||||||
'iframe' => array('id', 'src', 'frameborder', 'class', 'width', 'height', 'style'),
|
'iframe' => array('id', 'src', 'frameborder', 'class', 'width', 'height', 'style'),
|
||||||
'input' => array('type','name','value','class','style'),
|
'input' => array('type','name','value','class','style'),
|
||||||
|
Reference in New Issue
Block a user