From 96bffefe7a2089f68748b2f199681f0cac3edb34 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Sat, 22 Jul 2023 12:37:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20xss=E5=AF=BC=E8=87=B4=E9=A1=B5=E8=84=9A?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/login/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/login/index.vue b/frontend/src/views/login/index.vue index c1f441246c..883ac0cc98 100644 --- a/frontend/src/views/login/index.vue +++ b/frontend/src/views/login/index.vue @@ -455,6 +455,7 @@ export default { whiteList: { 'background-color': true, 'text-align': true, + 'color': true, 'margin-top': true, 'margin-bottom': true, 'line-height': true, @@ -465,7 +466,8 @@ export default { }, whiteList: { ...xss.whiteList, - p: ['style'] + p: ['style'], + span: ['style'] } }) this.footContent = myXss.process(content)