diff options
author | Alex Legler <alex@a3li.li> | 2015-03-14 12:40:35 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-03-14 12:40:35 +0100 |
commit | c1afb7abcdd75962e79db2613dd32059d9891bd7 (patch) | |
tree | 4c4766703f498bbdb3d276fb0904b6439b4d6ba3 | |
parent | Serve /glsa and /glsa/ (diff) | |
download | security-c1afb7abcdd75962e79db2613dd32059d9891bd7.tar.gz security-c1afb7abcdd75962e79db2613dd32059d9891bd7.tar.bz2 security-c1afb7abcdd75962e79db2613dd32059d9891bd7.zip |
Redirect ?passthru=1 requests
-rw-r--r-- | anzen.rb | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |