[PR #3691] [MERGED] Escape branch name in dropdown menu #17044

Closed
opened 2025-11-02 12:24:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3691
Author: @jonasfranz
Created: 3/19/2018
Status: Merged
Merged: 3/19/2018
Merged by: @lunny

Base: masterHead: escape-branch-name


📝 Commits (1)

  • 61ce616 Escape branch name in dropdown menu

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 templates/repo/branch_dropdown.tmpl (+2 -2)

📄 Description

Fix XSS part of #3681 by removing safe from BranchName in the dropdown menu.

Requires backport to 1.4.


🔄 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/3691 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 3/19/2018 **Status:** ✅ Merged **Merged:** 3/19/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `escape-branch-name` --- ### 📝 Commits (1) - [`61ce616`](https://github.com/go-gitea/gitea/commit/61ce6164b9c9a6e378001ba92c93402a99eb5313) Escape branch name in dropdown menu ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `templates/repo/branch_dropdown.tmpl` (+2 -2) </details> ### 📄 Description Fix XSS part of #3681 by removing `safe` from `BranchName` in the dropdown menu. Requires backport to 1.4. --- <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 12:24:58 -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#17044