forgejo/models/repo
Gusted a8afa4cd18
[GITEA] Use restricted sanitizer for repository description
- Currently the repository description uses the same sanitizer as a
normal markdown document. This means that element such as heading and
images are allowed and can be abused.
- Create a minimal restricted sanitizer for the repository description,
which only allows what the postprocessor currently allows, which are
links and emojis.
- Added unit testing.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1202
- Resolves https://codeberg.org/Codeberg/Community/issues/1122
2023-09-13 14:13:19 +02:00
..
archiver.go
attachment.go [FEAT] allow setting the update date on issues and comments 2023-09-11 16:41:14 +02:00
attachment_test.go
avatar.go
collaboration.go
collaboration_test.go
fork.go
fork_test.go
git.go
issue.go
language_stats.go
main_test.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
mirror.go
pushmirror.go Move modules/mirror to services (#26737) 2023-08-27 10:24:45 +08:00
pushmirror_test.go
redirect.go
redirect_test.go
release.go Move some functions to service layer (#26969) 2023-09-08 21:09:23 +00:00
release_test.go Move some functions to service layer (#26969) 2023-09-08 21:09:23 +00:00
repo.go [GITEA] Use restricted sanitizer for repository description 2023-09-13 14:13:19 +02:00
repo_indexer.go
repo_list.go Fix counting and filtering on the dashboard page for issues (#26657) 2023-08-23 02:29:17 +00:00
repo_list_test.go [GITEA] Improve HTML title on repositories 2023-09-11 18:09:23 +02:00
repo_test.go
repo_unit.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
repo_unit_test.go
search.go
star.go
star_test.go
topic.go
topic_test.go
update.go
upload.go
user_repo.go
user_repo_test.go
watch.go
watch_test.go
wiki.go
wiki_test.go