Skip to content

Commit f8cfe81

Browse files
authored
Merge pull request #1865 from hackmdio/bugfix/exlucde-name-attribute-from-iframe-render-allowlist
fix: exclude name attribute from iframe filterXSS allowlist
2 parents d767cc4 + 1407e16 commit f8cfe81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ whiteList.style = []
2020
// allow kbd tag
2121
whiteList.kbd = []
2222
// allow ifram tag with some safe attributes
23-
whiteList.iframe = ['allowfullscreen', 'name', 'referrerpolicy', 'src', 'width', 'height']
23+
whiteList.iframe = ['allowfullscreen', 'referrerpolicy', 'src', 'width', 'height']
2424
// allow summary tag
2525
whiteList.summary = []
2626
// allow ruby tag

0 commit comments

Comments
 (0)