0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-07 14:18:30 -05:00
forgejo/models
Gusted 4b9a473e12
[GITEA] Use restricted sanitizer for repository description
- Backport of https://codeberg.org/forgejo/forgejo/pulls/1433
  - 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)
2023-09-13 17:17:37 +02:00
..
actions Fix log typo in task.go (#26337) (#26343) 2023-08-21 07:22:17 +02:00
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) (#26368) 2023-08-21 07:22:17 +02:00
admin Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
asymkey Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
auth Ignore the trailing slashes when comparing oauth2 redirect_uri (#26597) (#26618) 2023-09-08 08:07:19 +02:00
avatars
db [GITEA] Add slow SQL query warning 2023-08-21 21:18:43 +02:00
dbfs Fix content holes in Actions task logs file (#25560) (#25566) 2023-06-28 23:39:23 +00:00
fixtures Fix verifyCommits error when push a new branch (#26664) (#26810) 2023-09-08 08:09:18 +02:00
forgejo/semver [UPGRADE] add sanity checks for [storage*] 2023-08-21 07:22:19 +02:00
forgejo_migrations [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-08-21 07:22:18 +02:00
git Fix pull request check list is limited (#26179) (#26245) 2023-08-21 07:22:15 +02:00
issues [GITEA] enable system users for comment.LoadPoster 2023-09-12 11:02:07 +02:00
migrations [UPGRADE] run sanity checks before the database is upgraded 2023-08-21 07:22:19 +02:00
organization Remove unused code (#25734) (#25788) 2023-07-09 19:47:58 +00:00
packages Fix NuGet search endpoints (#25613) (#26499) 2023-08-21 07:27:20 +02:00
perm
project Update xorm version (#26128) (#26150) 2023-07-26 13:50:10 +02:00
pull
repo [GITEA] Use restricted sanitizer for repository description 2023-09-13 17:17:37 +02:00
secret
shared/types
system Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
unit
unittest Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
user check blocklist for emails when adding them to account (#26812) (#26831) 2023-09-08 08:09:18 +02:00
webhook Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go