Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sanitising the URL by removing extra slashes in the URL (#21333) #23300

Merged

Commits on Mar 4, 2023

  1. Support sanitising the URL by removing extra slashes in the URL (go-g…

    …itea#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 go-gitea#20462
    
    Fix go-gitea#23242
    
    ---------
    
    Co-authored-by: zeripath <art27@cantab.net>
    Co-authored-by: Jason Song <i@wolfogre.com>
    Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
    4 people authored and GiteaBot committed Mar 4, 2023
    Configuration menu
    Copy the full SHA
    0e4b135 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db50cbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a286cf2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d5e623b View commit details
    Browse the repository at this point in the history