summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-20 00:47:35 -0500
committerUnknwon <u@gogs.io>2015-11-20 00:47:35 -0500
commit3d14e73fd835f2a0ed4a22daa4c67df245be8103 (patch)
tree725e4331dd5fa5960944bfc084c06b4c63263fc7 /routers
parent9bcc3c1ea3f3d2e7a68e7da7d6267e0f30bc3027 (diff)
downloadgitea-3d14e73fd835f2a0ed4a22daa4c67df245be8103.tar.gz
gitea-3d14e73fd835f2a0ed4a22daa4c67df245be8103.zip
fix #1119 and data race in timming tasks
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go3
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