[PR #1461] [MERGED] Sanitation fix from Gogs #15914

Closed
opened 2025-11-02 11:57:43 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1461
Author: @bkcsoft
Created: 4/7/2017
Status: Merged
Merged: 4/13/2017
Merged by: @lunny

Base: masterHead: bkcsoft/fix-code-injection


📝 Commits (7)

📊 Changes

7 files changed (+118 additions, -27 deletions)

View changed files

📝 models/repo.go (+3 -3)
📝 models/user.go (+2 -2)
📝 modules/markdown/markdown.go (+1 -20)
modules/markdown/sanitizer.go (+66 -0)
modules/markdown/sanitizer_test.go (+44 -0)
📝 modules/templates/helper.go (+1 -1)
📝 routers/init.go (+1 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1461 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 4/7/2017 **Status:** ✅ Merged **Merged:** 4/13/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `bkcsoft/fix-code-injection` --- ### 📝 Commits (7) - [`a242510`](https://github.com/go-gitea/gitea/commit/a2425103116c37502281049e55171e27e18ec7b1) Santiation fix from Gogs - [`fa24b11`](https://github.com/go-gitea/gitea/commit/fa24b110182520a67344ebd245b4f5846937bc79) Linting - [`09e7acd`](https://github.com/go-gitea/gitea/commit/09e7acdc3e1d51475b1de8358ac2047aebdf3092) Fix build-errors - [`20a883d`](https://github.com/go-gitea/gitea/commit/20a883d7e69de756a267a3fa8827d383abf9390d) still not working - [`c16b762`](https://github.com/go-gitea/gitea/commit/c16b76202ca65c7f337b3ade72d9e125bbe4f5a8) Fix all the things! - [`15f0a40`](https://github.com/go-gitea/gitea/commit/15f0a40bfb9ddcb786863a45a86b287294df0aad) gofmt - [`d5b711b`](https://github.com/go-gitea/gitea/commit/d5b711bab04412196606edda7cadf010a30f79a0) Add code-injection checks ### 📊 Changes **7 files changed** (+118 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+3 -3) 📝 `models/user.go` (+2 -2) 📝 `modules/markdown/markdown.go` (+1 -20) ➕ `modules/markdown/sanitizer.go` (+66 -0) ➕ `modules/markdown/sanitizer_test.go` (+44 -0) 📝 `modules/templates/helper.go` (+1 -1) 📝 `routers/init.go` (+1 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:57:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15914