update js/builtin/filekit/src/nativeapi_fs.cpp.

utils入参判断条件优化
This commit is contained in:
liubb
2020-09-28 12:42:16 +08:00
committed by Gitee
parent 216288bba6
commit fea67f020b
+3
View File
@@ -42,6 +42,9 @@ bool IsValidPath(const char* path)
if ((strstr(path, "/./") != nullptr) || (strstr(path, "/../") != nullptr)) {
return false;
}
if (strpbrk(path + PREFIX_LEN, "\"*+,:;<=>\?[]|\x7F")) {
return false;
}
return true;
}