diff options
author | Unknwon <u@gogs.io> | 2017-03-23 20:24:02 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-23 20:24:02 -0400 |
commit | bd1e7573505b9fe0adaa376c025c3e2e33ce4583 (patch) | |
tree | 1c8d526c1b1c8f23a7208ec50d28f1d6756f2e20 | |
parent | 3144be5c8118efa32c1367a00d7bd0602429c48b (diff) |
user: remove sanitizer for FullName (#1937)
-rw-r--r-- | models/user.go | 4 | ||||
-rw-r--r-- | public/css/gogs.css | 3 | ||||
-rw-r--r-- | public/less/_user.less | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/models/user.go b/models/user.go index a19f2a17..dadda252 100644 --- a/models/user.go +++ b/models/user.go @@ -32,7 +32,6 @@ import ( "github.com/gogits/gogs/models/errors" "github.com/gogits/gogs/modules/avatar" "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/markdown" "github.com/gogits/gogs/modules/setting" ) @@ -114,8 +113,6 @@ func (u *User) BeforeUpdate() { func (u *User) AfterSet(colName string, _ xorm.Cell) { switch colName { - case "full_name": - u.FullName = markdown.Sanitizer.Sanitize(u.FullName) case "created_unix": u.Created = time.Unix(u.CreatedUnix, 0).Local() case "updated_unix": @@ -707,7 +704,6 @@ func updateUser(e Engine, u *User) error { u.Website = base.TruncateString(u.Website, 255) u.Description = base.TruncateString(u.Description, 255) - u.FullName = markdown.Sanitizer.Sanitize(u.FullName) _, err := e.Id(u.ID).AllCols().Update(u) return err } diff --git a/public/css/gogs.css b/public/css/gogs.css index 54a351c7..c7a19c19 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -2861,6 +2861,9 @@ footer .ui.language .menu { .user.settings.repositories .repos .item .button { margin-top: -5px; } +.user.profile .ui.card .header { + word-break: break-all; +} .user.profile .ui.card .username { display: block; } diff --git a/public/less/_user.less b/public/less/_user.less index 891ea0a1..e3686ae8 100644 --- a/public/less/_user.less +++ b/public/less/_user.less @@ -45,6 +45,9 @@ &.profile { .ui.card { + .header { + word-break: break-all; + } .username { display: block; } |