Fix build script now that the JSON schema has been addressed
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 @@
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)):