Skip to content

Commit 5066dc3

Browse files
committed
adds support for a series of slashes as path
1 parent 22d6507 commit 5066dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action_controller/caching/pages.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def default_extension
141141
end
142142

143143
def cache_file(path, extension)
144-
if path.empty? || path == "/"
144+
if path.empty? || path =~ %r{\A/+\z}
145145
name = "/index"
146146
else
147147
name = URI.parser.unescape(path.chomp("/"))

0 commit comments

Comments
 (0)