mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-24 12:30:07 +00:00
fix: token endpoint must not accept params as query string args (#1321)
This commit is contained in:
committed by
GitHub
parent
f0249377ac
commit
eb0456a395
@@ -162,6 +162,8 @@ func (s *GeoLiteService) extractDatabase(reader io.Reader) error {
|
||||
}
|
||||
|
||||
// Check if the file starts with the gzip magic number
|
||||
// Gosec returns false positive for "G602: slice index out of range"
|
||||
//nolint:gosec
|
||||
isGzip := buf[0] == 0x1f && buf[1] == 0x8b
|
||||
|
||||
if !isGzip {
|
||||
|
||||
Reference in New Issue
Block a user