mirror of https://github.com/tidwall/tile38.git
Limit geohash precision to 12
This commit is contained in:
parent
25a954a6aa
commit
9093926135
|
@ -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