forgejo/models/repo
Gusted 1cd196da49
[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

(cherry picked from commit a8afa4cd18)
(cherry picked from commit 0238587c51)
(cherry picked from commit a8c7bbf728)
(cherry picked from commit 80e05a8245)
(cherry picked from commit f5af5050b3)
(cherry picked from commit 608f981e55)
(cherry picked from commit 6591867502)
(cherry picked from commit b7e6dedafd)
2023-10-30 14:44:21 +01:00
..
archiver.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
attachment.go [v1.21] [FEAT] allow setting the update date on issues and comments 2023-10-30 13:54:48 +01:00
attachment_test.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
avatar.go
collaboration.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
collaboration_test.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
fork.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
fork_test.go
git.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
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 More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
pushmirror.go Add RemoteAddress to mirrors (#26952) 2023-09-16 16:03:02 +00:00
pushmirror_test.go
redirect.go
redirect_test.go
release.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
release_test.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
repo.go [GITEA] Use restricted sanitizer for repository description 2023-10-30 14:44:21 +01: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-10-30 14:44:20 +01:00
repo_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2023-09-14 02:59:53 +00:00
repo_unit.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
repo_unit_test.go add disable workflow feature (#26413) 2023-08-14 15:14:30 +00:00
search.go
star.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
star_test.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
topic.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
topic_test.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
update.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
upload.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
user_repo.go
user_repo_test.go
watch.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
watch_test.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
wiki.go
wiki_test.go