Skip to content
Browse files

Fix syntax error on Ruby 1.9

  • Loading branch information...
1 parent afc09df commit 39e858d9ab638772f0489bceb94b1f8b1bc212be @cgriego cgriego committed Dec 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/directory.rb
View
2 lib/rack/directory.rb
@@ -90,7 +90,7 @@ def list_directory
basename = F.basename(node)
ext = F.extname(node)
- url = F.join(*url_head + [Rack::Utils.escape basename])
+ url = F.join(*url_head + [Rack::Utils.escape(basename)])
size = stat.size
type = stat.directory? ? 'directory' : Mime.mime_type(ext)
size = stat.directory? ? '-' : filesize_format(size)

0 comments on commit 39e858d

Please sign in to comment.
Something went wrong with that request. Please try again.