mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-25 12:27:13 +00:00
fix(clients): reject spaces, '/', '\' and control chars in subscription ID
Like the client email, the subId is embedded directly in subscription URLs, so the same characters break it. Validate it on the backend (Create + Update) and the frontend (Zod), with a localized message across all 13 locales. An empty subId stays allowed (it is then auto-generated).
This commit is contained in:
@@ -647,6 +647,7 @@
|
||||
"online": "在线",
|
||||
"email": "邮箱",
|
||||
"emailInvalidChars": "邮箱不能包含空格、'/'、'\\' 或控制字符",
|
||||
"subIdInvalidChars": "订阅ID不能包含空格、'/'、'\\' 或控制字符",
|
||||
"group": "分组",
|
||||
"groupDesc": "用于对相关客户端进行分桶的逻辑标签(如团队、客户、地区)。可从工具栏筛选。",
|
||||
"groupPlaceholder": "如 customer-a",
|
||||
|
||||
Reference in New Issue
Block a user