mirror of https://github.com/status-im/codimd.git
fix: remove reveal options of dependencies which allow import user defined resources [Security Issue]
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
9291a7670a
commit
c47f0f0c71
|
@ -80,6 +80,8 @@ const defaultOptions = {
|
|||
}
|
||||
|
||||
var options = meta.slideOptions || {}
|
||||
// delete dependencies to avoid import user defined external resources
|
||||
delete options.dependencies
|
||||
|
||||
if (Object.hasOwnProperty.call(options, 'spotlight')) {
|
||||
defaultOptions.dependencies.push({
|
||||
|
|
Loading…
Reference in New Issue