mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	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 #8800
		
			
				
	
	
	
		
			27 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			27 KiB