]> git.openstreetmap.org Git - rails.git/commit
Encode tag values substituted into tag2link query strings
authorSyogo-Suganoya <registration@ssuganoya.com>
Tue, 17 Nov 2026 10:50:41 +0000 (19:50 +0900)
committerSyogo-Suganoya <registration@ssuganoya.com>
Sun, 22 Nov 2026 10:12:55 +0000 (19:12 +0900)
commite5fc920a689ccd90a4110fa28f2966b711029353
tree8dcaba10d55a3428fb767e518d5e87c15b481e81
parentd88880b22e20ddbd1ab46f14728580a8c397d37a
Encode tag values substituted into tag2link query strings

Values were inserted into tag2link URL templates unencoded, so in
query strings a "+" was decoded as a space by the target site, and
characters such as "&" or "#" could break up the query. Values that
end up in the query are now percent-encoded, while those in the path
are left as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lib/tag_parser.rb
test/lib/tag_parser_test.rb