]> git.openstreetmap.org Git - rails.git/commit
Validate URLs against supply-chain attacks
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 2 Nov 2022 18:21:00 +0000 (18:21 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 2 Nov 2022 18:21:00 +0000 (18:21 +0000)
commitaf6fec502ac22d68224ec80bc925781955b0e842
treec3649e11863fdbf7b3d3e5d7e6b577c39e95c3e3
parent7e5cbe87ed37f9cba8224fa4049047d7f981f66a
Validate URLs against supply-chain attacks

Unfortunately validates_url gem doesn't support mailto or xmpp urls,
so we need to write our own validation.
app/views/site/communities.html.erb
lib/osm_community_index/resource_backend.rb
test/lib/osm_community_index/resource_backend_test.rb [new file with mode: 0644]