diff options
author | Unknwon <u@gogs.io> | 2015-11-20 00:47:35 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-20 00:47:35 -0500 |
commit | 3d14e73fd835f2a0ed4a22daa4c67df245be8103 (patch) | |
tree | 725e4331dd5fa5960944bfc084c06b4c63263fc7 /routers | |
parent | 9bcc3c1ea3f3d2e7a68e7da7d6267e0f30bc3027 (diff) | |
download | gitea-3d14e73fd835f2a0ed4a22daa4c67df245be8103.tar.gz gitea-3d14e73fd835f2a0ed4a22daa4c67df245be8103.zip |
fix #1119 and data race in timming tasks
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/home.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index 98033fc17d..96202ed080 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -319,6 +319,9 @@ func Profile(ctx *middleware.Context) { if uname == "favicon.ico" { ctx.Redirect(setting.AppSubUrl + "/img/favicon.png") return + } else if strings.HasSuffix(uname, ".png") { + ctx.Error(404) + return } isShowKeys := false |