You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/convert
zeripath af96286f22
Stop sanitizing full name in API (#17396)
The API convert.toUser function makes the incorrect assumption that full names could
be rendered as is without being escaped. It therefore runs the names through
markup.Sanitize which leads to a double escape of user full names. This
pr stops this.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
..
convert.go Move login related structs and functions to models/login (#17093) 3 years ago
git_commit.go Fix API to return author for author on commits(#16276) 3 years ago
git_commit_test.go Move db related basic functions to models/db (#17075) 3 years ago
issue.go Calculate label URL on API (#16186) 3 years ago
issue_comment.go [refactor] Unify the export of user data via API (#15144) 3 years ago
issue_test.go Move db related basic functions to models/db (#17075) 3 years ago
main_test.go Move db related basic functions to models/db (#17075) 3 years ago
notification.go API: add html urls to notification subjects (#17178) 3 years ago
pull.go API pull's head/base have correct permission (#17214) 3 years ago
pull_review.go Expose resolver via API (#15167) 3 years ago
pull_test.go API pull's head/base have correct permission (#17214) 3 years ago
release.go [refactor] Unify the export of user data via API (#15144) 3 years ago
repository.go Fix some API bugs (#16184) 3 years ago
status.go [refactor] Unify the export of user data via API (#15144) 3 years ago
user.go Stop sanitizing full name in API (#17396) 3 years ago
user_test.go Move db related basic functions to models/db (#17075) 3 years ago
utils.go Add migrate from OneDev (#16356) 3 years ago
utils_test.go Add some Unit-Tests (#14500) 4 years ago