mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Fix slide might able to add unsafe attribute on section tag which cause XSS [Security Issue]
This commit is contained in:
parent
f86a9e0c4b
commit
79d5b2c37f
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
// allow some attributes
|
||||
var whiteListAttr = ['id', 'class', 'style'];
|
||||
window.whiteListAttr = whiteListAttr;
|
||||
// allow link starts with '.', '/' and custom protocol with '://'
|
||||
var linkRegex = /^([\w|-]+:\/\/)|^([\.|\/])+/;
|
||||
// allow data uri, from https://gist.github.com/bgrins/6194623
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue