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:03:40 UTC

[httpd-site] branch main updated: debuggery

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 ff7a902  debuggery
ff7a902 is described below

commit ff7a902025994c24cffaf4f7e615e4a1aeca31c8
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jan 17 18:03:35 2023 +0100

    debuggery
---
 content/security/cvejsontohtml.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/content/security/cvejsontohtml.py b/content/security/cvejsontohtml.py
index ae5bd76..da70215 100644
--- a/content/security/cvejsontohtml.py
+++ b/content/security/cvejsontohtml.py
@@ -26,6 +26,7 @@ for x in os.listdir(options.directory or "./"):
         try:
             fd = open(options.directory+x)
             cve = json.load(fd)
+            cve["_filename"] = x
             cves.append(cve)
         except:
             print ("Ignoring due to error parsing: "+x)
@@ -35,6 +36,7 @@ for x in os.listdir(options.directory or "./"):
 for cve in cves:
     # Establish which version of CVE JSON we are dealing with
     data_version = cve.get("dataVersion", DEFAULT_CVE_DATA_VERSION)
+    print("%s: v%s" % (cve["_filename"], data_version))
      
     if data_version == DEFAULT_CVE_DATA_VERSION:  # Old style CVE
         timearray = cve["timeline"]