Logo
Explore Help
Sign In
mirror/gitea
Watch 1
Star 0
Fork 0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00
Code Issues Projects Releases Wiki Activity
Files
release/v1.19
gitea/routers/common
T
History
GiteabotGitHubSandeep BhatzeripathJason SongLunny Xiaodelvh
a2a9b0f977 Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300)
Backport #21333

Changes in this PR :

Strips incoming request URL of additional slashes (/). For example an
input like

`https://git.data.coop//halfd/new-website.git` is translated to
`https://git.data.coop/halfd/new-website.git`

Fixes https://github.com/go-gitea/gitea/issues/20462

Fix #23242

Co-authored-by: Sandeep Bhat <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Jason Song <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: delvh <[email protected]>
2023-03-05 02:14:12 -05:00
..
db.go
Support disabling database auto migration (#22053)
2022-12-07 09:58:31 -06:00
middleware_test.go
Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300)
2023-03-05 02:14:12 -05:00
middleware.go
Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300)
2023-03-05 02:14:12 -05:00
repo.go
Implement FSFE REUSE for golang files (#21840)
2022-11-27 18:20:29 +00:00
Powered by Gitea Page: 49ms Template: 4ms
edge-auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API