1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-12 10:44:27 +00:00
silverwind 55d7e53d99
Fix panic in BasicAuthDecode (#14046) (#14048)
* Fix panic in BasicAuthDecode

If the string does not contain ":" that function would run into an
`index out of range [1] with length 1` error. prevent that.

* Update BasicAuthDecode()

Co-authored-by: 6543 <6543@obermui.de>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
2020-12-19 00:19:43 +08:00
..
2020-10-10 20:38:09 -04:00
2020-04-05 07:20:50 +01:00
2020-10-02 23:37:53 -04:00
2019-06-12 15:41:28 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2020-10-02 23:37:53 -04:00
2020-10-14 07:49:33 +03:00
2020-10-10 20:38:09 -04:00
2020-10-14 07:06:00 +03:00
2020-08-27 22:47:17 -04:00
2020-04-05 07:20:50 +01:00