Skip to content

Commit

Permalink
Merge pull request #1865 from hackmdio/bugfix/exlucde-name-attribute-…
Browse files Browse the repository at this point in the history
…from-iframe-render-allowlist

fix: exclude name attribute from iframe filterXSS allowlist
  • Loading branch information
Yukaii committed Jun 5, 2024
2 parents d767cc4 + 1407e16 commit f8cfe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ whiteList.style = []
// allow kbd tag
whiteList.kbd = []
// allow ifram tag with some safe attributes
whiteList.iframe = ['allowfullscreen', 'name', 'referrerpolicy', 'src', 'width', 'height']
whiteList.iframe = ['allowfullscreen', 'referrerpolicy', 'src', 'width', 'height']
// allow summary tag
whiteList.summary = []
// allow ruby tag
Expand Down

0 comments on commit f8cfe81

Please sign in to comment.