summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-05-22 19:20:01 -0400
committersiddharth <s@ricketyspace.net>2022-05-22 19:20:01 -0400
commit46f9a5d623d0bdb6fc11fe2e6b4861a7fdedf6ce (patch)
tree9e0fdf44127dd3bc97858676c6eb06cd4eea2914
parentadd80a9eb1d5b6692f5762532fee3c95a826a266 (diff)
peach: update url path lat,lng matching
make it more strict.
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index b3f600f..36e2b6f 100644
--- a/main.go
+++ b/main.go
@@ -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
}