aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/contract.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-12-29 18:24:02 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2013-12-29 18:38:53 +0000
commit436ed5171199ae1764ce413044dad8d1556b7791 (patch)
tree3e7cb66e32d0669b48738e8ea86c6fdbff2af694 /activerecord/test/models/contract.rb
parent54ccc58c6208601a5714cff1b05418979656bf22 (diff)
downloadrails-436ed5171199ae1764ce413044dad8d1556b7791.tar.gz
rails-436ed5171199ae1764ce413044dad8d1556b7791.tar.bz2
rails-436ed5171199ae1764ce413044dad8d1556b7791.zip
Fix Encoding::CompatibilityError when public path is UTF-8
In #5337 we forced the path encoding to ASCII-8BIT to prevent static file handling from blowing up before an application has had chance to deal with possibly invalid urls. However this has a negative side effect of making it an incompatible encoding if the application's public path has UTF-8 characters in it. To work around the problem we check to see if the path has a valid encoding once it has been unescaped. If it is not valid then we can return early since it will not match any file anyway. Fixes #13518
Diffstat (limited to 'activerecord/test/models/contract.rb')
0 files changed, 0 insertions, 0 deletions