1
0
Fork 0
forgejo/models
Gusted f5af5050b3
[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)
2023-10-09 20:44:24 +02:00
..
actions
activities
admin
asymkey
auth [GITEA] silently ignore obsolete sudo scope 2023-10-09 20:25:23 +02:00
avatars
db [GITEA] Add slow SQL query warning 2023-10-09 20:25:24 +02:00
dbfs
fixtures [GITEA] Improve HTML title on repositories 2023-10-09 20:25:23 +02:00
forgejo/semver [v1.22] [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-10-09 19:11:03 +02:00
forgejo_migrations [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-10-09 19:11:03 +02:00
git
issues [GITEA] enable system users for comment.LoadPoster 2023-10-09 20:44:24 +02:00
migrations [UPGRADE] run sanity checks before the database is upgraded 2023-10-09 19:11:03 +02:00
organization
packages
perm
project
pull
repo [GITEA] Use restricted sanitizer for repository description 2023-10-09 20:44:24 +02:00
secret
shared/types
system
unit
unittest [TESTS] tests.AddFixtures helper loads additional per-test fixtures 2023-10-09 19:11:03 +02:00
user [GITEA] enable system users search via the API 2023-10-09 20:44:24 +02:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go