From e6b3d63fea077ed1617697852e8a600e0e9102e7 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 13 Jul 2014 12:11:29 +0200 Subject: Disable rack protection in any case. Fixes #63. --- web/taginfo.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web') diff --git a/web/taginfo.rb b/web/taginfo.rb index 2adaff2..5ad8b66 100755 --- a/web/taginfo.rb +++ b/web/taginfo.rb @@ -80,16 +80,16 @@ class Taginfo < Sinatra::Base set :host, 'localhost' set :port, ARGV[0] set :environment, :production - - # Disable rack-protection library because it messes up embedding - # taginfo in an iframe. This should probably be done more - # selectively, but there is no documentation on what rack-protection - # is actually doing... - disable :protection else # test enable :logging end + + # Disable rack-protection library because it messes up embedding + # taginfo in an iframe. This should probably be done more + # selectively, but there is no documentation on what rack-protection + # is actually doing... + disable :protection end # make h() method for escaping HTML available -- cgit v1.2.3