Rack should unescape submitted URLs

Signed-off-by: Brandon Mathis <brandon@imathis.com>
This commit is contained in:
Parker Moore 2012-12-16 13:29:44 -05:00 committed by Brandon Mathis
parent 773be70c29
commit a5e3a45846

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