Repository description not escaped #4201

Closed
opened 2025-11-02 05:42:12 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ghost on GitHub (Oct 28, 2019).

Description

Related: #3903

Screenshots

3
4

Originally created by @ghost on GitHub (Oct 28, 2019). - Gitea version (or commit ref): e3875ac - Git version: 2.17.1 - Operating system: Ubuntu - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL): https://try.gitea.io/cezar97/Gitea_Issue_Escaping - [ ] No - [ ] Not relevant - Log gist: ## Description Related: #3903 ## Screenshots ![3](https://user-images.githubusercontent.com/2960293/67685750-034b5980-f9d9-11e9-8c19-06464f775eb8.png) ![4](https://user-images.githubusercontent.com/2960293/67685754-047c8680-f9d9-11e9-94cd-1fa030e2058b.png)
Author
Owner
@6543 commented on GitHub (Oct 28, 2019): -> https://github.com/go-gitea/gitea/blob/master/templates/repo/home.tmpl#L8
Author
Owner

@zeripath commented on GitHub (Oct 28, 2019):

e3875ace91/models/repo.go (L831-L839)

The HTML is sanitised preventing any security issue. It is escaped.

@zeripath commented on GitHub (Oct 28, 2019): https://github.com/go-gitea/gitea/blob/e3875ace913ca428804acc9a9ee1cd0b06cd8026/models/repo.go#L831-L839 The HTML is sanitised preventing any security issue. It is escaped.
Author
Owner

@6543 commented on GitHub (Oct 28, 2019):

done at https://github.com/go-gitea/gitea/pull/6306

@6543 commented on GitHub (Oct 28, 2019): done at https://github.com/go-gitea/gitea/pull/6306
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4201