Fix [references] no empty refs

This commit is contained in:
niclas 2024-03-05 15:55:07 +01:00
parent 2b383338f0
commit 9e78c85124
2 changed files with 1 additions and 13 deletions

View file

@ -8261,9 +8261,6 @@
"meta": { "meta": {
"date_accessed": "2016-09-13T00:00:00Z", "date_accessed": "2016-09-13T00:00:00Z",
"date_published": "2016-09-13T00:00:00Z", "date_published": "2016-09-13T00:00:00Z",
"refs": [
""
],
"source": "MITRE", "source": "MITRE",
"title": "Bypassing Application Whitelisting using MSBuild.exe - Device Guard Example and Mitigations" "title": "Bypassing Application Whitelisting using MSBuild.exe - Device Guard Example and Mitigations"
}, },
@ -22573,9 +22570,6 @@
"meta": { "meta": {
"date_accessed": "2018-07-27T00:00:00Z", "date_accessed": "2018-07-27T00:00:00Z",
"date_published": "2016-10-20T00:00:00Z", "date_published": "2016-10-20T00:00:00Z",
"refs": [
""
],
"source": "MITRE", "source": "MITRE",
"title": "How to: Find the Web Application Root" "title": "How to: Find the Web Application Root"
}, },
@ -43869,9 +43863,6 @@
"description": "SanDisk. (n.d.). Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.). Retrieved October 2, 2018.", "description": "SanDisk. (n.d.). Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.). Retrieved October 2, 2018.",
"meta": { "meta": {
"date_accessed": "2018-10-02T00:00:00Z", "date_accessed": "2018-10-02T00:00:00Z",
"refs": [
""
],
"source": "MITRE", "source": "MITRE",
"title": "Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.)" "title": "Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.)"
}, },
@ -48546,9 +48537,6 @@
"meta": { "meta": {
"date_accessed": "2017-12-20T00:00:00Z", "date_accessed": "2017-12-20T00:00:00Z",
"date_published": "2014-07-01T00:00:00Z", "date_published": "2014-07-01T00:00:00Z",
"refs": [
""
],
"source": "MITRE", "source": "MITRE",
"title": "The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory" "title": "The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory"
}, },

View file

@ -487,7 +487,7 @@ class ReferencesCluster(Cluster):
for entry in data["data"]: for entry in data["data"]:
meta = ReferencesMeta( meta = ReferencesMeta(
source=entry.get("source"), source=entry.get("source"),
refs=[entry.get("url")], refs=[entry.get("url")] if entry.get("url") != "" else None,
title=entry.get("title"), title=entry.get("title"),
author=entry.get("author"), author=entry.get("author"),
date_accessed=entry.get("date_accessed"), date_accessed=entry.get("date_accessed"),