summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'anzen.rb')
-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