Skip to content

Commit ed01dea

Browse files
committed
(Fix: ShellManager) 修复Shell管理分类重命名时self-xss影响体验问题
1 parent 1dbf3c4 commit ed01dea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/modules/shellmanager/category/toolbar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class Toolbar {
131131
if (v === 'default') {
132132
return toastr.warning(LANG['rename']['disable'], LANG_T['warning']);
133133
};
134+
v = antSword.noxss(v);
134135
// 判断分类是否存在
135136
if (this.top.sidebar.items(v)) {
136137
return toastr.warning(LANG['rename']['exists'], LANG_T['warning']);

0 commit comments

Comments
 (0)