veza/veza-backend-api/internal/utils
senke d3bcfd8e60 [BE-SEC-009] be-sec: Implement input sanitization
- Created comprehensive sanitization utility functions
- SanitizeInput, SanitizeText, SanitizeHTML, SanitizeURL, SanitizeEmail, SanitizeUsername
- Applied sanitization to profile handler (username, bio, names, search)
- Applied sanitization to social posts content
- Applied sanitization to comment content
- Applied sanitization to playlist titles and descriptions
- All functions prevent XSS via HTML escaping and remove dangerous URL schemes
- Removes control characters and limits input length to prevent DoS
2025-12-24 12:15:25 +01:00
..
math.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
pagination.go P0 UUID Phase A: migrations + backend Go UUID refactor 2025-12-04 02:15:48 +01:00
password_validator.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
password_validator_test.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
playlist_validator.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
playlist_validator_test.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
sanitizer.go [BE-SEC-009] be-sec: Implement input sanitization 2025-12-24 12:15:25 +01:00
settings_validator.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
settings_validator_test.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
slug.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
slug_test.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
utils.go [BE-SEC-009] be-sec: Implement input sanitization 2025-12-24 12:15:25 +01:00