about summary refs log tree commit homepage
path: root/extras/autoindex.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-12-30 02:02:21 +0000
committerEric Wong <e@80x24.org>2013-12-30 02:03:36 +0000
commit5535a4e78637c35081d42bf949e3995997ceefcb (patch)
treef5d15859ee12099e697ac1a751aea31305afb2e6 /extras/autoindex.rb
parent4fe625b9a42b003e31329edd45d087b9c47ef5ed (diff)
downloadyahns-5535a4e78637c35081d42bf949e3995997ceefcb.tar.gz
Proper POSIX filesystems are encoding-agnostic.
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)