core: prohibit rtl characters in displayName

This commit is contained in:
undefined committed 2025-08-11 08:54:43 +08:00
1 parent 2c9b3a1fde
commit 5ba1188d50
4 files changed
+34 -20

No files matched your search

+1
View File
@@ -366,6 +366,7 @@ function set(s: Setting, key: string, value: any) {
if (s.family === 'setting_storage') return undefined;
if (s.flag & setting.FLAG_DISABLED) return undefined;
if ((s.flag & setting.FLAG_SECRET) && !value) return undefined;
if (s.validation && !s.validation(value)) throw new ValidationError(key);
if (s.type === 'boolean') {
if (value === 'on') return true;
return false;