Skip to content

Quesition about 'global'  #324

@RobIsHere

Description

@RobIsHere

module.exports = global.DOMPurify = global.DOMPurify || resolveDOMPurify();

Just a thought about security: if anyone is able to install his do-nothing function somehow like

global.DOMPurify = (content, opts) => content

he could disable the sanitizing globally because his function would be returned by this package instead of Dompurify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions