MM-30826: Sentry crash: nil deference in model.AuthorizeRequest (#16563)
The return statement after setting c.InvalidParam was missing https://mattermost.atlassian.net/browse/MM-30826 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8496cb6977
Коммит
dae95dd373
@@ -46,6 +46,7 @@ func authorizeOAuthApp(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
authRequest := model.AuthorizeRequestFromJson(r.Body)
|
||||
if authRequest == nil {
|
||||
c.SetInvalidParam("authorize_request")
|
||||
return
|
||||
}
|
||||
|
||||
if err := authRequest.IsValid(); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user