summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@goodpoint.de>2008-04-08 10:14:47 +0200
committerRobert Buchholz <rbu@goodpoint.de>2008-04-08 10:14:47 +0200
commit40166930c0886d25c88bbbeef437bcf34a90ccb4 (patch)
treede21b7a532486945e1a879c41666f94e2dcfdd63
parentChanges until Mar 13, 2008, (diff)
downloadglsamaker-40166930c0886d25c88bbbeef437bcf34a90ccb4.tar.gz
glsamaker-40166930c0886d25c88bbbeef437bcf34a90ccb4.tar.bz2
glsamaker-40166930c0886d25c88bbbeef437bcf34a90ccb4.zip
Allow "GLSA XXX" in references and generate correct URL for it
if none is given.
-rw-r--r--frame-new.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/frame-new.php b/frame-new.php
index 0d50909..53da31e 100644
--- a/frame-new.php
+++ b/frame-new.php
@@ -277,6 +277,10 @@ bodyFooter_invoke();
{
if(strpos($HTTP_POST_VARS['GLSA_RF_Title'], 'CVE-') === 0)
array_push($GLSAReferences, array($HTTP_POST_VARS['GLSA_RF_Title'] => 'http://cve.mitre.org/cgi-bin/cvename.cgi?name='.$HTTP_POST_VARS['GLSA_RF_Title']));
+ else if(strpos($HTTP_POST_VARS['GLSA_RF_Title'], 'GLSA ') === 0)
+ array_push($GLSAReferences, array($HTTP_POST_VARS['GLSA_RF_Title'] => 'http://www.gentoo.org/security/en/glsa/glsa-'
+ . substr($HTTP_POST_VARS['GLSA_RF_Title'], 5)
+ . '.xml'));
else
echo generateWarning('The entered reference was ignored - a reference URL is required!');
}