mirror of https://github.com/tidwall/tile38.git
Limit geohash precision to 12
This commit is contained in:
parent
019995e5f6
commit
5f5c4d9f03
|
@ -662,7 +662,8 @@ func (s *Server) parseSearchScanBaseTokens(
|
|||
}
|
||||
}
|
||||
if sprecision != "" {
|
||||
if t.precision, err = strconv.ParseUint(sprecision, 10, 64); err != nil || t.precision == 0 || t.precision > 64 {
|
||||
t.precision, err = strconv.ParseUint(sprecision, 10, 64)
|
||||
if err != nil || t.precision == 0 || t.precision > 12 {
|
||||
err = errInvalidArgument(sprecision)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue