[PR #3486] [MERGED] Escape repo search query #16962

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3486
Author: @jonasfranz
Created: 2/10/2018
Status: Merged
Merged: 2/11/2018
Merged by: @lafriks

Base: masterHead: escape-html


📝 Commits (2)

  • 2970889 Escape search query
  • ef49cb6 Merge branch 'master' into escape-html

📊 Changes

2 files changed (+8 additions, -1 deletions)

View changed files

📝 modules/templates/helper.go (+7 -0)
📝 templates/repo/search.tmpl (+1 -1)

📄 Description

Fixes #3485 by escaping the search term.

Needs perhaps a backport to 1.3 and 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/3486 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 2/10/2018 **Status:** ✅ Merged **Merged:** 2/11/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `escape-html` --- ### 📝 Commits (2) - [`2970889`](https://github.com/go-gitea/gitea/commit/2970889019ef385f2d60a1aac1ea4c50fcc40b87) Escape search query - [`ef49cb6`](https://github.com/go-gitea/gitea/commit/ef49cb648ea2230b9e129200a17a0815312b1a16) Merge branch 'master' into escape-html ### 📊 Changes **2 files changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `modules/templates/helper.go` (+7 -0) 📝 `templates/repo/search.tmpl` (+1 -1) </details> ### 📄 Description Fixes #3485 by escaping the search term. Needs perhaps a backport to 1.3 and 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:23:05 -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#16962