Beautiful Open-Source Form Builder
Remove redundant path traversal check in FileUploadPathService for improved code clarity (#968)
Chirag Chhatrala5c28c2ac3cbf
diff --git a/api/app/Service/Storage/FileUploadPathService.php b/api/app/Service/Storage/FileUploadPathService.phpindex 4c506ecfd..9c506a4b6 100644--- a/api/app/Service/Storage/FileUploadPathService.php+++ b/api/app/Service/Storage/FileUploadPathService.php@@ -86,7 +86,6 @@ class FileUploadPathService// Check for path traversal attempts or problematic charactersif (- str_contains($component, '..') ||str_contains($component, '/') ||str_contains($component, '\\')) {