1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00:00
mrsdizzie dce22efbee Fix SSH2 conditonal in key parsing code (#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 #8800
2019-11-03 19:08:18 +08:00
..
2019-08-23 12:40:29 -04:00
2019-10-17 11:26:49 +02:00
2017-05-04 13:54:56 +08:00
2019-06-12 15:41:28 -04:00
2019-09-24 21:22:39 +08:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 11:26:49 +02:00
2019-10-17 10:06:28 +08:00
2019-06-12 15:41:28 -04:00
2019-10-17 11:26:49 +02:00
2019-08-23 12:40:29 -04:00
2019-10-17 11:26:49 +02:00
2019-10-29 23:32:21 +02:00
2019-10-17 11:26:49 +02:00
2019-06-12 15:41:28 -04:00
2019-10-17 11:26:49 +02:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2018-10-20 18:19:21 -04:00
2019-10-18 23:42:04 +01:00
2019-10-18 23:42:04 +01:00
2019-10-18 23:42:04 +01:00