diff --git a/models/user.go b/models/user.go index a19f2a177..dadda2521 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 54a351c7e..c7a19c19a 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 891ea0a1e..e3686ae8a 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; }