From ed01dead7d46f56ef4a2fd644d9cb5e12df4573f Mon Sep 17 00:00:00 2001 From: Medicean Date: Wed, 17 Apr 2019 12:33:12 +0800 Subject: [PATCH] =?UTF-8?q?(Fix:=20ShellManager)=20=E4=BF=AE=E5=A4=8DShell?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=88=86=E7=B1=BB=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E6=97=B6self-xss=E5=BD=B1=E5=93=8D=E4=BD=93=E9=AA=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/modules/shellmanager/category/toolbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/modules/shellmanager/category/toolbar.js b/source/modules/shellmanager/category/toolbar.js index 432586b4..657200aa 100644 --- a/source/modules/shellmanager/category/toolbar.js +++ b/source/modules/shellmanager/category/toolbar.js @@ -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']);