[PR #47] [MERGED] Fix SHA and compare regex on route file [Critical] #15111

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/47
Author: @thibaultmeyer
Created: 11/3/2016
Status: Merged
Merged: 11/3/2016
Merged by: @strk

Base: masterHead: fix/3743-route-regexp-branchname


📝 Commits (3)

  • a79eb48 Fix SHA regexp and commit comparisons
  • 8ea63f8 Restore whitespace
  • 1adde07 Merge branch 'master' into fix/3743-route-regexp-branchname

📊 Changes

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

View changed files

📝 cmd/web.go (+3 -3)

📄 Description

Related to the issue #3743, this pull request fix the regex used on the route file for SHA and branches comparisons.

  • A SHA hash can only contains a b c d e f 0 1 2 3 4 5 6 7 8 9
  • A branch name could be smaller than 7 characters

🔄 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/47 **Author:** [@thibaultmeyer](https://github.com/thibaultmeyer) **Created:** 11/3/2016 **Status:** ✅ Merged **Merged:** 11/3/2016 **Merged by:** [@strk](https://github.com/strk) **Base:** `master` ← **Head:** `fix/3743-route-regexp-branchname` --- ### 📝 Commits (3) - [`a79eb48`](https://github.com/go-gitea/gitea/commit/a79eb48de30ae72ebc6183e7bef5fd7012d4b5a0) Fix SHA regexp and commit comparisons - [`8ea63f8`](https://github.com/go-gitea/gitea/commit/8ea63f8c506410d09e6b8b0dbcb102271bd9cbbe) Restore whitespace - [`1adde07`](https://github.com/go-gitea/gitea/commit/1adde07a3fc4a43ec3d5829dc3e5ba9587584f77) Merge branch 'master' into fix/3743-route-regexp-branchname ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+3 -3) </details> ### 📄 Description Related to the issue #3743, this pull request fix the regex used on the route file for SHA and branches comparisons. - A SHA hash can only contains `a b c d e f 0 1 2 3 4 5 6 7 8 9` - A branch name could be smaller than 7 characters --- <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:39:06 -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#15111