提交 d4576673 编写于 作者: M Marcel Molina

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
上级 f49dc37e
*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 @@ def caches_page(*actions)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册