svn commit: r535112 - head/security/vuxml/files
Gordon Tetlow
gordon at FreeBSD.org
Wed May 13 15:16:47 UTC 2020
Author: gordon (src committer)
Date: Wed May 13 15:16:46 2020
New Revision: 535112
URL: https://svnweb.freebsd.org/changeset/ports/535112
Log:
Add proper links for the html output of vuln.xml.
Add freebsdsa as a proper type.
Correct link to CVEs.
Reviewed by: gjb, joneum
Approved by: ports-secteam (joneum)
Differential Revision: https://reviews.freebsd.org/D24824
Modified:
head/security/vuxml/files/html.xsl
Modified: head/security/vuxml/files/html.xsl
==============================================================================
--- head/security/vuxml/files/html.xsl Wed May 13 14:45:49 2020 (r535111)
+++ head/security/vuxml/files/html.xsl Wed May 13 15:16:46 2020 (r535112)
@@ -153,11 +153,20 @@
<h2 class="section">References</h2>
<table class="reftab">
+ <xsl:for-each select="vuxml:references/vuxml:freebsdsa">
+ <tr valign="top">
+ <td class="label">FreeBSD SA</td>
+ <td class="content"><xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="concat('https://security.freebsd.org/advisories/FreeBSD-', ., '.asc')" /></xsl:attribute>
+ <xsl:value-of select="concat('FreeBSD-', .)" />
+ </xsl:element></td>
+ </tr>
+ </xsl:for-each>
<xsl:for-each select="vuxml:references/vuxml:cvename">
<tr valign="top">
<td class="label">CVE Name</td>
<td class="content"><xsl:element name="a">
- <xsl:attribute name="href"><xsl:value-of select="concat(., '.html')" /></xsl:attribute>
+ <xsl:attribute name="href"><xsl:value-of select="concat('https://cve.mitre.org/cgi-bin/cvename.cgi?name=', .)" /></xsl:attribute>
<xsl:value-of select="." />
</xsl:element></td>
</tr>
More information about the svn-ports-all
mailing list