Skip to content

Commit

Permalink
Added math to namespaces to look out for
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Oct 14, 2019
1 parent 884e248 commit a63c1cb
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/purify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ function createDOMPurify(window = getGlobal()) {

/* Take care of an mXSS pattern using namespace switches */
if (
/svg/.test(currentNode.namespaceURI) &&
/svg|math/i.test(currentNode.namespaceURI) &&
new RegExp('</(' + Object.keys(FORBID_CONTENTS).join('|') + ')').test(
value
)
Expand Down

0 comments on commit a63c1cb

Please sign in to comment.