summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-03-14 12:40:35 +0100
committerAlex Legler <alex@a3li.li>2015-03-14 12:40:35 +0100
commitc1afb7abcdd75962e79db2613dd32059d9891bd7 (patch)
tree4c4766703f498bbdb3d276fb0904b6439b4d6ba3
parentServe /glsa and /glsa/ (diff)
downloadsecurity-c1afb7abcdd75962e79db2613dd32059d9891bd7.tar.gz
security-c1afb7abcdd75962e79db2613dd32059d9891bd7.tar.bz2
security-c1afb7abcdd75962e79db2613dd32059d9891bd7.zip
Redirect ?passthru=1 requests
-rw-r--r--anzen.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/anzen.rb b/anzen.rb
index 4a361a6..655e7de 100644
--- a/anzen.rb
+++ b/anzen.rb
@@ -60,6 +60,11 @@ end
get '/glsa/:glsaid' do
if GLSARepository.instance.has? params[:glsaid]
+ if params[:passthru] == '1'
+ redirect "/glsa/#{params[:glsaid]}.xml"
+ return
+ end
+
@glsa = GLSARepository.instance[params[:glsaid]]
template = :glsa