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

[Backports] Fix SSH2 conditonal in key parsing code (#8806) #8810

Merged
merged 1 commit into from
Nov 3, 2019

Commits on Nov 3, 2019

  1. Fix SSH2 conditonal in key parsing code (go-gitea#8806)

    Avoid out of bounds error by using strings.HasPrefix to check for
    starting SSH2 text rather than assuming user input has at least 31
    characters.
    
    Add tests for bad input as well.
    
    Fixes go-gitea#8800
    mrsdizzie authored and 6543 committed Nov 3, 2019
    Configuration menu
    Copy the full SHA
    234906a View commit details
    Browse the repository at this point in the history