diff options
author | Unknwon <u@gogs.io> | 2016-12-22 19:19:56 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-22 19:19:56 -0500 |
commit | 7ebe0a99169f2a143ccb20da5d1918a99ccaaf7d (patch) | |
tree | f5df6ce75d7651681dddd47869c87687a208c868 /routers/api/v1/user | |
parent | 89e93fe01e3942546b0d2cd5e031157848178916 (diff) |
Fix vulnerabilities reported in #3959
Diffstat (limited to 'routers/api/v1/user')
-rw-r--r-- | routers/api/v1/user/email.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index 1f615cdf..168f383a 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/user/email.go @@ -69,6 +69,7 @@ func DeleteEmail(ctx *context.APIContext, form api.CreateEmailOption) { emails := make([]*models.EmailAddress, len(form.Emails)) for i := range form.Emails { emails[i] = &models.EmailAddress{ + UID: ctx.User.ID, Email: form.Emails[i], } } |