Update dependencies

This commit is contained in:
Maximilian Paß
2022-06-01 23:34:32 +02:00
committed by Sebastian Serth
parent 1e59c1146e
commit 669ec039ce
3 changed files with 140 additions and 88 deletions

View File

@ -92,7 +92,7 @@ func HTTPLoggingMiddleware(next http.Handler) http.Handler {
})
}
// RemoveNewlineSymbol GOOD: remove newlines from user controlled input before logging
// RemoveNewlineSymbol GOOD: remove newlines from user controlled input before logging.
func RemoveNewlineSymbol(data string) string {
data = strings.ReplaceAll(data, "\r", "")
data = strings.ReplaceAll(data, "\n", "")