wacli/internal/pathutil
Martín Alcalá Rubí 7a2b323098
security: strip null bytes and control chars in path sanitization (#140)
When saving media or handling files, wacli relies on path sanitization. Previously, null bytes (\x00) and certain control characters were not explicitly stripped, which can lead to path traversal vulnerabilities when interfacing with the underlying OS file system.

This safely strips null bytes and control characters inside `SanitizeSegment` and `SanitizeFilename`.

Closes #60
2026-04-14 14:20:25 -07:00
..
sanitize_test.go security: strip null bytes and control chars in path sanitization (#140) 2026-04-14 14:20:25 -07:00
sanitize.go security: strip null bytes and control chars in path sanitization (#140) 2026-04-14 14:20:25 -07:00