This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
models: sanitize user full name when update settings
for-closed-social
Unknwon
9 years ago
parent
7140f50637
commit
f706102890
3 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
gogs.go
+1
-0
models/user.go
+1
-1
templates/.VERSION
+ 1
- 1
gogs.go
View File
@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const
APP_VER
=
"0.5.12.020
2
Beta"
const
APP_VER
=
"0.5.12.020
4
Beta"
func
init
(
)
{
runtime
.
GOMAXPROCS
(
runtime
.
NumCPU
(
)
)
+ 1
- 0
models/user.go
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
}
+ 1
- 1
templates/.VERSION
View File
@ -1 +1 @@
0.5.12.020
2
Beta
0.5.12.020
4
Beta
Write
Preview
Loading…
Cancel
Save