fix #1119 and data race in timming tasks

This commit is contained in:
Unknwon 2015-11-20 00:47:35 -05:00
parent 9bcc3c1ea3
commit 3d14e73fd8
3 changed files with 75 additions and 16 deletions

View file

@ -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