Skip to content

Commit

Permalink
(Fix: ShellManager) 修复Shell管理分类重命名时self-xss影响体验问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Medicean committed Apr 17, 2019
1 parent 1dbf3c4 commit ed01dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/modules/shellmanager/category/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class Toolbar {
if (v === 'default') {
return toastr.warning(LANG['rename']['disable'], LANG_T['warning']);
};
v = antSword.noxss(v);
// 判断分类是否存在
if (this.top.sidebar.items(v)) {
return toastr.warning(LANG['rename']['exists'], LANG_T['warning']);
Expand Down

0 comments on commit ed01dea

Please sign in to comment.