chore: build
Backend - Build & Lint / build (push) Failing after 29m5s
Frontend Client - EAS Build / build (push) Failing after 2h25m33s

This commit is contained in:
Nuxgrid
2026-07-14 18:34:58 +02:00
parent 8c3fa39d86
commit 734493363f
17 changed files with 2014 additions and 7 deletions
+1 -5
View File
@@ -145,11 +145,7 @@ func validateFileMimeType(fileHeader *multipart.FileHeader) (string, error) {
func sanitizeFilePath(path string) (string, error) {
cleaned := filepath.Clean(path)
if strings.Contains(cleaned, "..") || strings.Contains(cleaned, ".") {
return "", fmt.Errorf("path traversal détecté")
}
if strings.Contains(cleaned, "//..//") || strings.Contains(cleaned, "/../") {
if strings.Contains(cleaned, "..") {
return "", fmt.Errorf("path traversal détecté")
}