Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 2b98220

Browse files
committed
Ensure we correctly handle links to 1.1.1 commits
Commits for version 1.1.1x or above are premium support only Also fixes the logic for 1.0.2 (the first premium support release was 1.0.2v) Reviewed-by: Anton Arapov <anton@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #454)
1 parent 0c7f54f commit 2b98220

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/cvejsontohtml.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ def getbasefor(fixedin):
213213
commitId = git.split(";")[-1].split("=")[-1]
214214
git = f"https://github.com/openssl/openssl/commit/{commitId}"
215215
if (
216-
fixedin.startswith("1.0.2") and fixedin[5] >= "w"
217-
): # 1.0.2w and above hack
216+
(fixedin.startswith("1.0.2") and fixedin[5] >= "v")
217+
or (fixedin.startswith("1.1.1") and fixedin[5] >= "x")
218+
): # 1.0.2v/1.1.1x and above hack
218219
allissues += (
219220
'<a href="/support/contracts.html?giturl=%s">(premium support)</a> '
220221
% (git)

0 commit comments

Comments
 (0)