aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/sanitize_test.rb
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2018-03-21 16:33:36 +0000
committerAndrew White <andrew.white@unboxed.co>2018-03-22 04:23:49 +0000
commit2ef145883348e92c9e6393ece9b6967e3a5a80c7 (patch)
tree0bc7a1fa19ce01b25a1e692c821aa37158355ec5 /activerecord/test/cases/sanitize_test.rb
parent4c9c3ffc2e80155f31dbcf80591618ed1c858685 (diff)
downloadrails-2ef145883348e92c9e6393ece9b6967e3a5a80c7.tar.gz
rails-2ef145883348e92c9e6393ece9b6967e3a5a80c7.tar.bz2
rails-2ef145883348e92c9e6393ece9b6967e3a5a80c7.zip
Use ASCII-8BIT paths in ActionDispatch::Static
The rack gem returns PATH_INFO as an ASCII-8BIT encoded string but it was being converted to US-ASCII by the match? method because it was calling Rack::Utils.escape_path. To prevent incompatibile encoding warnings use ASCII-8BIT strings for the root path and let Ruby handle any filename encoding conversion. Fixes #32294, Closes #32314.
Diffstat (limited to 'activerecord/test/cases/sanitize_test.rb')
0 files changed, 0 insertions, 0 deletions