From 384036bcddba8f329222a42d063a0ec873b5ca90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Sun, 17 Aug 2025 15:53:55 +0200 Subject: [PATCH] remove blocker pattern --- local/utl/security/path_validator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/local/utl/security/path_validator.go b/local/utl/security/path_validator.go index caa864f..902919b 100644 --- a/local/utl/security/path_validator.go +++ b/local/utl/security/path_validator.go @@ -16,7 +16,6 @@ type PathValidator struct { func NewPathValidator() *PathValidator { blockedPatterns := []*regexp.Regexp{ regexp.MustCompile(`\.\.`), - regexp.MustCompile(`[<>:"|?*]`), regexp.MustCompile(`^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$`), regexp.MustCompile(`\x00`), regexp.MustCompile(`^\\\\`), @@ -92,4 +91,4 @@ func (pv *PathValidator) AddAllowedBasePath(path string) error { func (pv *PathValidator) GetAllowedBasePaths() []string { return append([]string(nil), pv.allowedBasePaths...) -} \ No newline at end of file +}