]> git.openstreetmap.org Git - rails.git/commit
Select contributor terms from a list of the available jurisdictions
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Aug 2026 13:12:48 +0000 (14:12 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Aug 2026 13:12:48 +0000 (14:12 +0100)
commitc35475ab5f7c4dafa121ebd544206815b583fb81
treefd10671a9c88afa6411db0a7f06ba32eaab91ec3
parentc39f3a485bb2457af9d09555380c30957966b5e8
Select contributor terms from a list of the available jurisdictions

Rather than probing the filesystem with an interpolated path and falling
back when it doesn't exist, check the country code against the set of
files in config/legales, so that only known-good values are ever joined
onto a path. This also covers codes returned by OSM.ip_to_country, which
the controller's parameter validation doesn't apply to.
lib/osm.rb
test/lib/osm_test.rb