[openstreetmap/openstreetmap-website] Ignore invalid object IDs in various redirects (PR #7372)
Tom Hughes
notifications at github.com
Wed Sep 9 11:03:21 UTC 2026
@tomhughes commented on this pull request.
> @@ -44,13 +44,13 @@ def permalink
options = new_params.to_unsafe_h.to_options
- path = if params.key? :node
+ path = if params[:node]&.match(/^\d+$/)
Good idea - now implemented.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7372#discussion_r3967619942
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7372/review/5153378858 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260909/d5f7bf86/attachment.htm>
More information about the rails-dev
mailing list