Unescape paths before writing cache to file system. Closes #1877.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Marcel Molina 2005-10-12 22:57:04 +00:00
parent f49dc37e71
commit d4576673c0
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Unescape paths before writing cache to file system. #1877. [Damien Pollet]
* Wrap javascript_tag contents in a CDATA section and add a cdata_section method to TagHelper #1691 [Michael Schuerig, Sam Stephenson]
* Misc doc fixes (typos/grammar/etc). #2445. [coffee2code]

View File

@ -101,7 +101,7 @@ module ActionController #:nodoc:
private
def page_cache_file(path)
name = ((path.empty? || path == "/") ? "/index" : path)
name = ((path.empty? || path == "/") ? "/index" : URI.unescape(path))
name << page_cache_extension unless (name.split('/').last || name).include? '.'
return name
end