]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/static/js/vtoy.js
1.1.07 release
[Ventoy.git] / Plugson / www / static / js / vtoy.js
index afb108370ace45c29cdcea570ec1582fb1a90248..ad82628b6931fb3dd5df47efc3ad9bc7d32db9a0 100644 (file)
@@ -33,6 +33,8 @@ function ventoy_get_ulen(str) {
 \r
 \r
 function ventoy_common_check_path(path) {\r
+    var curdir\r
+    \r
     if (path.indexOf('//') >= 0) {\r
         return false;\r
     }\r
@@ -41,7 +43,12 @@ function ventoy_common_check_path(path) {
         return false;\r
     }\r
 \r
-    if (path.substr(0, g_current_dir.length) != g_current_dir) {\r
+    curdir = path.substr(0, g_current_dir.length);    \r
+    if (curdir.match("^[a-z]:$")) {\r
+        curdir = curdir.toUpperCase();\r
+    }\r
+    \r
+    if (curdir != g_current_dir) {\r
         return false;\r
     }\r
 \r