Fix slide might able to add unsafe attribute on section tag which cause XSS [Security Issue]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user