diff options
author | Karl Entwistle <karl.entwistle@unboxedconsulting.com> | 2014-07-10 09:58:46 +0100 |
---|---|---|
committer | Karl Entwistle <karl.entwistle@unboxedconsulting.com> | 2014-07-10 10:02:11 +0100 |
commit | 8a297131349bf4e0ade4a0941e5da0c987396d89 (patch) | |
tree | b7e194b25eda53d87edf429f3ef1ed51e1007804 /railties/test/generators/model_generator_test.rb | |
parent | b9ffae8feb453ee2961b5284fe3310b227532179 (diff) | |
download | rails-8a297131349bf4e0ade4a0941e5da0c987396d89.tar.gz rails-8a297131349bf4e0ade4a0941e5da0c987396d89.tar.bz2 rails-8a297131349bf4e0ade4a0941e5da0c987396d89.zip |
Force encoding of US-ASCII to UTF-8 in unescape_uri.
Because URI paths may contain non US-ASCII characters we need to force
the encoding of any unescaped URIs to UTF-8 if they are US-ASCII.
This essentially replicates the functionality of the monkey patch to
URI.parser.unescape in active_support/core_ext/uri.rb.
Fixes #16104.
Diffstat (limited to 'railties/test/generators/model_generator_test.rb')
0 files changed, 0 insertions, 0 deletions