mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(view) title: xss
This commit is contained in:
parent
f04808c709
commit
2935181452
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ const Events = require('../dom/events');
|
|||
const load = require('../dom/load');
|
||||
const Images = require('../dom/images');
|
||||
|
||||
const {encode} = require('../../common/entity');
|
||||
|
||||
const testRegExp = currify((name, reg) => reg.test(name));
|
||||
const lifo = currify((fn, el, cb, name) => fn(name, el, cb));
|
||||
|
||||
|
|
@ -40,6 +42,7 @@ let El, TemplateAudio, Overlay;
|
|||
|
||||
const Config = {
|
||||
beforeShow: function(callback) {
|
||||
this.title = encode(this.title);
|
||||
Images.hide();
|
||||
Key.unsetBind();
|
||||
showOverlay();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue