You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2023/01/17 17:01:48 UTC

[httpd-site] branch main updated: shorten, avoid possible shadowing?

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/httpd-site.git


The following commit(s) were added to refs/heads/main by this push:
     new b124f4f  shorten, avoid possible shadowing?
b124f4f is described below

commit b124f4fb4feca43ba9449fa04b9e6e66ad0889de
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jan 17 18:01:43 2023 +0100

    shorten, avoid possible shadowing?
---
 content/security/cvejsontohtml.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/content/security/cvejsontohtml.py b/content/security/cvejsontohtml.py
index 76520b3..ae5bd76 100644
--- a/content/security/cvejsontohtml.py
+++ b/content/security/cvejsontohtml.py
@@ -34,9 +34,7 @@ for x in os.listdir(options.directory or "./"):
 # Filter on version and store by release(s) that fixed it
 for cve in cves:
     # Establish which version of CVE JSON we are dealing with
-    data_version = DEFAULT_CVE_DATA_VERSION
-    if cve.get("dataType") == "CVE_RECORD":
-        data_version = cve.get("dataVersion", DEFAULT_CVE_DATA_VERSION)
+    data_version = cve.get("dataVersion", DEFAULT_CVE_DATA_VERSION)
      
     if data_version == DEFAULT_CVE_DATA_VERSION:  # Old style CVE
         timearray = cve["timeline"]