0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 01:14:10 -05:00
forgejo/modules/base
silverwind 27edc1aa19
Fix panic in BasicAuthDecode (#14046)
* 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>
2020-12-17 20:51:28 -05:00
..
base.go API error cleanup (#7186) 2019-06-12 17:07:24 -04:00
natural_sort.go
natural_sort_test.go
tool.go Fix panic in BasicAuthDecode (#14046) 2020-12-17 20:51:28 -05:00
tool_test.go Fix panic in BasicAuthDecode (#14046) 2020-12-17 20:51:28 -05:00