silverwind b10109ffe8 Improve SSH key parser to handle newlines in keys (#7522)
* Strip newlines from SSH keys before adding them

Fixes: https://github.com/go-gitea/gitea/issues/7500

* add test for CheckPublicKeyString

* add one more test

* simplify test

* further simplify

* make fmt
2019-07-23 16:25:06 +03:00
..
2019-04-15 20:32:15 -04:00
2019-06-12 15:41:28 -04:00
2019-07-06 15:24:50 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-05-04 11:45:34 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00