mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-27 21:44:18 -04:00
1. Add check for invalid characters in menu_class plugin.
2. Optimization for help language list process
This commit is contained in:
parent
4131d95cef
commit
e1c26567a1
12 changed files with 73 additions and 19 deletions
|
@ -169,11 +169,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (extra.indexOf("\"") >= 0) {
|
||||
Message.error(g_current_language === 'en' ? "Class can not contains double quotes." : "Class 不能包含双引号。");
|
||||
return;
|
||||
}
|
||||
|
||||
callVtoy({
|
||||
method : 'class_add',
|
||||
index: current_tab_index,
|
||||
|
@ -188,6 +183,11 @@
|
|||
}
|
||||
|
||||
function OnAddKeyClass(key, value) {
|
||||
if (!ventoy_check_file_name_char(key)) {
|
||||
Message.error(g_current_language === 'en' ? "As part of file name, key can not include invalid characters!" : "作为文件名的一部分,key 中不能包含特殊的符号!");
|
||||
return;
|
||||
}
|
||||
|
||||
AddClassEntry(key, 0, 1, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue