Skip to content

Commit fe9b26d

Browse files
committed
Fix sanitizing filenames
Signed-off-by: Alexandre Peixoto Ferreira <[email protected]>
1 parent e20fb9b commit fe9b26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func readDevDirectory(dirToList string, allowedRecursions uint8) (files []string
9393
}
9494

9595
func sanitizeName(path string) string {
96-
return strings.Replace(path, "/", "_" ,-1)
96+
return strings.Replace(path, "/!@#$%^&*()[]{}'`~.", "___________________",-1)
9797
}
9898

9999
func findDevicesPattern(listDevices []string, pattern string) ([]string,error) {

0 commit comments

Comments
 (0)