[PR #4710] [MERGED] Improve URL validation for external wiki and external issues #17469

Closed
opened 2025-11-02 13:34:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4710
Author: @lafriks
Created: 8/14/2018
Status: Merged
Merged: 8/15/2018
Merged by: @lafriks

Base: masterHead: fix/url_validation_ext_issue


📝 Commits (3)

  • 71ad290 Improve URL validation for external wiki and external issues
  • 6423108 Merge branch 'master' into fix/url_validation_ext_issue
  • 960c1d8 Do not allow also localhost address for external URLs

📊 Changes

5 files changed (+180 additions, -10 deletions)

View changed files

📝 modules/validation/binding.go (+3 -8)
modules/validation/helpers.go (+77 -0)
modules/validation/helpers_test.go (+90 -0)
📝 options/locale/locale_en-US.ini (+1 -0)
📝 routers/repo/setting.go (+9 -2)

📄 Description

Fixes #4703


🔄 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/4710 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 8/14/2018 **Status:** ✅ Merged **Merged:** 8/15/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix/url_validation_ext_issue` --- ### 📝 Commits (3) - [`71ad290`](https://github.com/go-gitea/gitea/commit/71ad290b68779dbbed92aada292487a667dba952) Improve URL validation for external wiki and external issues - [`6423108`](https://github.com/go-gitea/gitea/commit/6423108d8ffe747924d203be8907e1a178d6f12f) Merge branch 'master' into fix/url_validation_ext_issue - [`960c1d8`](https://github.com/go-gitea/gitea/commit/960c1d8e8f1fced0e75caf0cf48ad637bd8cb6c9) Do not allow also localhost address for external URLs ### 📊 Changes **5 files changed** (+180 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `modules/validation/binding.go` (+3 -8) ➕ `modules/validation/helpers.go` (+77 -0) ➕ `modules/validation/helpers_test.go` (+90 -0) 📝 `options/locale/locale_en-US.ini` (+1 -0) 📝 `routers/repo/setting.go` (+9 -2) </details> ### 📄 Description Fixes #4703 --- <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 13:34:14 -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#17469