mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
436ed51711
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 |
||
---|---|---|
.. | ||
foo | ||
index.html |