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 19:22:00 UTC

[httpd-site] branch main updated: Fix build script now that the JSON schema has been addressed

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 33debed  Fix build script now that the JSON schema has been addressed
33debed is described below

commit 33debed4ee1e6e86b99eccea0c1b8c2548f47029
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jan 17 20:21:56 2023 +0100

    Fix build script now that the JSON schema has been addressed
---
 content/security/cvejsontohtml.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/content/security/cvejsontohtml.py b/content/security/cvejsontohtml.py
index 7bb7651..46265d0 100644
--- a/content/security/cvejsontohtml.py
+++ b/content/security/cvejsontohtml.py
@@ -41,9 +41,11 @@ for cve in cves:
      
     if data_version == DEFAULT_CVE_DATA_VERSION:  # Old style CVE
         cve["id"] = cve["CVE_data_meta"]["ID"]
+        timearray = cve["timeline"]
     elif data_version == "5.0":  # Newer style JSON
         cve["id"] = cve["cveMetadata"]["cveId"]
-    for time in cve["timeline"]:
+        timearray = cve["containers"]["cna"]["timeline"]
+    for time in timearray:
         timed = time["value"]
         matcher = re_fixedin.match(timed);
         if (matcher and matcher.group('released').startswith(filterversion)):