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
2 lines
118 B
Ruby
2 lines
118 B
Ruby
# Add URI sanitizer to rack middleware
|
|
Rails.configuration.middleware.insert_before Rack::Runtime, Rack::URISanitizer
|