From aadc03e5fc75ea0c11b95e2a025176271e9ec13d Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 22 Apr 2014 16:47:18 -0700 Subject: [PATCH] fix sessions for Internet Fucking Explorer --- environment.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/environment.rb b/environment.rb index af2bc661..eb4289a0 100644 --- a/environment.rb +++ b/environment.rb @@ -86,6 +86,9 @@ end Sinatra::Application.set :erb, escape_html: true +# Session fix for Internet Fucking Explorer https://github.com/rkh/rack-protection/issues/11 +Sinatra::Application.set :protection, except: :session_hijacking + class Sinatra::Base alias_method :render_original, :render def render(engine, data, options = {}, locals = {}, &block)