diff options
author | Sandeep Bhat <sandyethadka@gmail.com> | 2023-03-04 19:01:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 21:31:24 +0800 |
commit | 547c173dabb10ec973ce9af24243072466960d6e (patch) | |
tree | b1be66975780abad654336ee95e6fe1cb550421f /build | |
parent | 188c8c12c290e131fb342e3203634828652b0af5 (diff) | |
download | gitea-547c173dabb10ec973ce9af24243072466960d6e.tar.gz gitea-547c173dabb10ec973ce9af24243072466960d6e.zip |
Support sanitising the URL by removing extra slashes in the URL (#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: zeripath <art27@cantab.net>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'build')
0 files changed, 0 insertions, 0 deletions