diff options
author | siddharth <s@ricketyspace.net> | 2022-05-22 19:20:01 -0400 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2022-05-22 19:20:01 -0400 |
commit | 46f9a5d623d0bdb6fc11fe2e6b4861a7fdedf6ce (patch) | |
tree | 9e0fdf44127dd3bc97858676c6eb06cd4eea2914 | |
parent | add80a9eb1d5b6692f5762532fee3c95a826a266 (diff) |
peach: update url path lat,lng matching
make it more strict.
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ func main() { } m := latLngRegex.FindStringSubmatch(r.URL.Path) - if len(m) != 3 { + if len(m) != 3 || m[0] != r.URL.Path { http.NotFound(w, r) return } |