mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-27 08:51:59 +01:00
`IsReadmeFileExtension("readme", exts...)` panicked with `index out of
range [6] with length 6` when `exts` had no empty extension. The only
caller always passes one, so this was not reachable in practice.
Fixes:
https://github.com/go-gitea/gitea/security/quality/rules/go%2Findex-out-of-bounds
Written by Claude.