0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 23:06:19 +01:00

models: sanitize user full name when update settings

This commit is contained in:
Unknwon 2015-02-04 20:04:01 -05:00
parent 7140f50637
commit f706102890
3 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.5.12.0202 Beta"
const APP_VER = "0.5.12.0204 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())

View File

@ -477,6 +477,7 @@ func UpdateUser(u *User) error {
}
u.Avatar = avatar.HashEmail(u.AvatarEmail)
u.FullName = base.Sanitizer.Sanitize(u.FullName)
_, err = x.Id(u.Id).AllCols().Update(u)
return err
}

View File

@ -1 +1 @@
0.5.12.0202 Beta
0.5.12.0204 Beta