Commit ed01dead authored by Medicean's avatar Medicean

(Fix: ShellManager) 修复Shell管理分类重命名时self-xss影响体验问题

parent 1dbf3c46
......@@ -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']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment