From 5535a4e78637c35081d42bf949e3995997ceefcb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Dec 2013 02:02:21 +0000 Subject: extras/*: use binary path names Proper POSIX filesystems are encoding-agnostic. --- extras/autoindex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/autoindex.rb') 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) -- cgit v1.2.3-24-ge0c7