mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 06:22:45 +08:00
bug(security): allow name and slot attributes when sanitizing (#18246)
* allow name attribute * also add slot
This commit is contained in:
@ -122,5 +122,5 @@ const getElementChildren = (element: any) => {
|
||||
return (element.children != null) ? element.children : element.childNodes;
|
||||
};
|
||||
|
||||
const allowedAttributes = ['class', 'id', 'href', 'src'];
|
||||
const allowedAttributes = ['class', 'id', 'href', 'src', 'name', 'slot'];
|
||||
const blockedTags = ['script', 'style', 'iframe', 'meta', 'link', 'object', 'embed'];
|
||||
|
Reference in New Issue
Block a user