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:
parent
f49dc37e71
commit
d4576673c0
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue