This repository has been archived on 2023-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
gitea/modules/base
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
..
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) (#14048) 2020-12-19 00:19:43 +08:00
tool_test.go Fix panic in BasicAuthDecode (#14046) (#14048) 2020-12-19 00:19:43 +08:00