aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-15 16:49:06 +0800
committerGitHub <noreply@github.com>2016-12-15 16:49:06 +0800
commitb4c794058aa57426679877444b52561e7e16ef2b (patch)
tree0835bc252a72077f7fe9f7daa4d02ff4059d8c27 /routers/api/v1
parentd771e978a108517ca5833b5e2f17b45e2d7dc6ca (diff)
downloadgitea-b4c794058aa57426679877444b52561e7e16ef2b.tar.gz
gitea-b4c794058aa57426679877444b52561e7e16ef2b.zip
fixed vulnerabilities (#392)
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/user/email.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go
index f42fc11cf6..0d83aa38c1 100644
--- a/routers/api/v1/user/email.go
+++ b/routers/api/v1/user/email.go
@@ -73,6 +73,7 @@ func DeleteEmail(ctx *context.APIContext, form api.CreateEmailOption) {
for i := range form.Emails {
emails[i] = &models.EmailAddress{
Email: form.Emails[i],
+ UID: ctx.User.ID,
}
}