Skip to content

Commit

Permalink
missing replacement for \ in json body
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Jun 25, 2024
1 parent d53c4ac commit da412c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/webapi/webapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ func (s *Server) htmlDetectedSpamHandler(w http.ResponseWriter, _ *http.Request)
d.Text = strings.ReplaceAll(d.Text, "\r", " ")
d.Text = strings.ReplaceAll(d.Text, "\t", " ")
d.Text = strings.ReplaceAll(d.Text, "\"", " ")
d.Text = strings.ReplaceAll(d.Text, "\\", " ")
ds[i] = d
}

Expand Down

0 comments on commit da412c0

Please sign in to comment.