[PR #4082] [MERGED] Fix #4081 Check for leading / in base before removing it #17232

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4082
Author: @sapk
Created: 5/30/2018
Status: Merged
Merged: 5/30/2018
Merged by: @lunny

Base: masterHead: fix-absolute-path-url


📝 Commits (1)

  • 5263cdb Fix #4081 Check for leading / in base before removing it

📊 Changes

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

View changed files

📝 modules/util/util.go (+2 -2)
📝 modules/util/util_test.go (+6 -0)

📄 Description

And add more tests related to this func.

Fix #4081


🔄 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/4082 **Author:** [@sapk](https://github.com/sapk) **Created:** 5/30/2018 **Status:** ✅ Merged **Merged:** 5/30/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix-absolute-path-url` --- ### 📝 Commits (1) - [`5263cdb`](https://github.com/go-gitea/gitea/commit/5263cdb2ef47205814be94f08b2bfffbb2d452a5) Fix #4081 Check for leading / in base before removing it ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `modules/util/util.go` (+2 -2) 📝 `modules/util/util_test.go` (+6 -0) </details> ### 📄 Description And add more tests related to this func. Fix #4081 --- <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:30:23 -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#17232