Skip to content

Commit

Permalink
Remove script from emails if present (#113)
Browse files Browse the repository at this point in the history
* [security] Remove script from emails if present

* Add security section in releases
  • Loading branch information
harryzcy authored Jan 31, 2023
1 parent b13bd1b commit b4ac591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "❗ Security"
labels:
- "security"
- title: "🚀 Features"
labels:
- "feature"
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/EmailView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function parseEmailContent(email: Email) {
if (['html', 'head', 'body'].includes(domNode.name)) {
return <>{domToReact(domNode.children, options)}</>
}
if (['meta', 'link'].includes(domNode.name)) return <></>
if (['meta', 'link', 'script'].includes(domNode.name)) return <></>
if (domNode.name === 'style') {
domNode.children = domNode.children
.map((child) => {
Expand Down

0 comments on commit b4ac591

Please sign in to comment.