Skip to content

Commit

Permalink
Fix: Added link to CVE to Detection Method / Details.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold authored and bjoernricks committed Feb 14, 2025
1 parent 83d3bfa commit 0b7fbd7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/web/pages/results/details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ const ResultDetails = ({className, links = true, entity}) => {
</DetailsLink>
</span>
)}
{isDefined(infoId) &&
infoId.startsWith('CVE-') && (
<span>
<DetailsLink id={infoId} textOnly={!links} type="cve">
{renderNvtName(infoId, information.name)}
{' (OID: ' + infoId + ')'}
</DetailsLink>
</span>
)}
{!isDefined(infoId) &&
_('No details available for this method.')}
</TableData>
Expand Down

0 comments on commit 0b7fbd7

Please sign in to comment.