X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4bf43ab9d4e6b724836724c1d514760d164df79a..c2cc0bd3dca23519f59565bc4e69fb5c92d3bb0f:/Plugson/www/plugson_menu_class.html?ds=sidebyside diff --git a/Plugson/www/plugson_menu_class.html b/Plugson/www/plugson_menu_class.html index 940bd6d..c451662 100644 --- a/Plugson/www/plugson_menu_class.html +++ b/Plugson/www/plugson_menu_class.html @@ -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); }