Update dependencies
This commit is contained in:

committed by
Sebastian Serth

parent
1e59c1146e
commit
669ec039ce
@ -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", "")
|
||||
|
Reference in New Issue
Block a user