Rack should unescape submitted URLs

This commit is contained in:
Parker Moore 2012-12-16 13:29:44 -05:00
parent 773be70c29
commit cb7ec73fc7

View File

@ -7,7 +7,7 @@ $root = ::File.dirname(__FILE__)
class SinatraStaticServer < Sinatra::Base
get(/.+/) do
send_sinatra_file(request.path) {404}
send_sinatra_file(unescape request.path) {404}
end
not_found do