mirror of https://github.com/go-gitea/gitea
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 #8800pull/8825/head
parent
b040a87665
commit
c5e5063ec9
Loading…
Reference in new issue