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
This commit is contained in:
parent
d218d5bf7d
commit
e20bb507f1
4 changed files with 25 additions and 11 deletions
3
Gemfile
3
Gemfile
|
@ -54,6 +54,9 @@ gem "i18n-js", ">= 3.0.0.rc10"
|
|||
gem "rack-cors"
|
||||
gem "actionpack-page_caching"
|
||||
|
||||
# Sanitise URIs
|
||||
gem "rack-uri_sanitizer"
|
||||
|
||||
# Omniauth for authentication
|
||||
gem "omniauth"
|
||||
gem "omniauth-openid"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue