Signed-off-by: 孟立 <mengli12@huawei.com>
This commit is contained in:
孟立 2024-11-14 02:22:43 +00:00 committed by Gitee
parent cdf37e1220
commit 768db5ed5c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -433,7 +433,7 @@ function sendDlpFileOpenProperties() {
}
function isValidPath(path: string): Boolean {
if (path.indexOf('/./') !== -1 || path.indexOf('/../') !== -1) {
if (path.indexOf('./') !== -1 || path.indexOf('../') !== -1) {
return false;
}
return true;