Skip to content

Commit

Permalink
Fix invalid numerics exponential notation
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro committed Feb 23, 2024
1 parent 0421fda commit d6e4b57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consent/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ func (h *Handler) acceptOAuth2ConsentRequest(w http.ResponseWriter, r *http.Requ

var p flow.AcceptOAuth2ConsentRequest
d := json.NewDecoder(r.Body)
d.UseNumber()
d.DisallowUnknownFields()
if err := d.Decode(&p); err != nil {
h.r.Writer().WriteErrorCode(w, r, http.StatusBadRequest, errorsx.WithStack(err))
Expand Down

0 comments on commit d6e4b57

Please sign in to comment.