Skip to content

Commit a0c4895

Browse files
🐛 Differentiate between slackware and siemens vulnid (#12251)
1 parent ae199cb commit a0c4895

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dojo/templatetags/display_tags.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import datetime
44
import logging
55
import mimetypes
6+
import re
67
from ast import literal_eval
78
from itertools import chain
89

@@ -782,6 +783,8 @@ def vulnerability_url(vulnerability_id):
782783
return settings.VULNERABILITY_URLS[key] + str(vulnerability_id.replace("GLSA-", "glsa/"))
783784
if key == "SSA:":
784785
return settings.VULNERABILITY_URLS[key] + str(vulnerability_id.replace("SSA:", "SSA-"))
786+
if key == "SSA-" and not re.findall(r"SSA-\d{4}-", vulnerability_id):
787+
return "https://cert-portal.siemens.com/productcert/html/" + str(vulnerability_id.lower()) + ".html"
785788
if key in {"AVD", "KHV", "C-"}:
786789
return settings.VULNERABILITY_URLS[key] + str(vulnerability_id.lower())
787790
if key == "SUSE-SU-":

0 commit comments

Comments
 (0)