Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-30 22:06:11 +01: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 Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
natural_sort_test.go Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
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