aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-07-13 12:11:29 +0200
committerJochen Topf <jochen@topf.org>2014-07-13 12:11:29 +0200
commite6b3d63fea077ed1617697852e8a600e0e9102e7 (patch)
treea208faddbe4b52c00bd06468d4fdbe8d4f9b0ee5 /web
parentd92bfea1d8ad41aa1e2149cc90f8f90e01afe9d8 (diff)
downloadtaginfo-e6b3d63fea077ed1617697852e8a600e0e9102e7.tar
taginfo-e6b3d63fea077ed1617697852e8a600e0e9102e7.tar.gz
Disable rack protection in any case.
Fixes #63.
Diffstat (limited to 'web')
-rwxr-xr-xweb/taginfo.rb12
1 files changed, 6 insertions, 6 deletions
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