From 0f132a5972dfb736dfbe5a755638596a39539228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= <74231782+sj817@users.noreply.github.com> Date: Fri, 30 Jan 2026 18:25:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20webui=20=E9=9A=8F=E6=9C=BAtoken=E4=BB=85?= =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=8D=E4=BC=9A=E8=A2=ABurl=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E9=9A=8F=E6=9C=BA=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/network_edit/generic_form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx b/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx index bcc70a0a..33840659 100644 --- a/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx +++ b/packages/napcat-webui-frontend/src/components/network_edit/generic_form.tsx @@ -180,7 +180,7 @@ const GenericForm = ({ export default GenericForm; export function random_token (length: number) { const chars = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()-_=+[]{}|;:,.<>?'; + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~'; let result = ''; for (let i = 0; i < length; i++) { result += chars.charAt(Math.floor(Math.random() * chars.length));