about summary refs log tree commit homepage
path: root/extras/autoindex.rb
diff options
context:
space:
mode:
Diffstat (limited to 'extras/autoindex.rb')
-rw-r--r--extras/autoindex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/autoindex.rb b/extras/autoindex.rb
index 9ce6c61..c8f7054 100644
--- a/extras/autoindex.rb
+++ b/extras/autoindex.rb
@@ -42,7 +42,7 @@ class Autoindex
       return res if status.to_i != 404
 
       path_info = env["PATH_INFO"]
-      path_info_ue = Rack::Utils.unescape(path_info)
+      path_info_ue = Rack::Utils.unescape(path_info, Encoding::BINARY)
 
       # reject requests to go up a level (browser takes care of it)
       path_info_ue =~ /\.\./ and return r(403)