[openstreetmap/openstreetmap-website] catch invalid URLs instead of just showing somewhere else (#1198)

積丹尼 Dan Jacobson notifications at github.com
Sun Jun 23 09:46:24 UTC 2024


It's like checking for incorrect six-digit PINs, without ever
considering the case of being given seven digits.

https://brightsec.com/blog/an-introduction-to-the-importance-of-input-validation-in-preventing-security-vulnerabilities/

Let's see what Google does.
- OK https://www.google.com/maps/search/?api=1&query=42.16613%2C-87.78237
- XX https://www.google.com/maps/search/?api=1&query=42.16613%2F-87.78237

> Google Maps can't find 42.16613/-87.78237
> Make sure your search is spelled correctly. Try adding a city, state, or zip code.
> [Try Google Search instead](https://www.google.com/search?q=42.16613/-87.78237&hl=en&authuser=0)

"Show me a ladder that high" is no excuse for not locking the window.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1198#issuecomment-2184922713
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/1198/2184922713 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240623/f04f1e7f/attachment.htm>


More information about the rails-dev mailing list