]> git.openstreetmap.org Git - rails.git/commit
Fix issues with bogus % encoded sequences in URLs
authorTom Hughes <tom@compton.nu>
Mon, 7 Dec 2015 13:52:20 +0000 (13:52 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 7 Dec 2015 13:52:20 +0000 (13:52 +0000)
commite20bb507f122f73d18021bf93efe85fc2e189dfb
tree7c3adf0e0d086dfdf6123f44b62d07df58828af1
parentd218d5bf7d5e980635f8d9a773ab675786f8cea4
Fix issues with bogus % encoded sequences in URLs

Add a URI sanitizer to the rack stack avoid rack throwing
exceptions on the server side, and ignore errors decoding
components on the client side.

Fixes #1101
Gemfile
Gemfile.lock
app/assets/javascripts/osm.js.erb
config/initializers/uri_sanitizer.rb [new file with mode: 0644]