aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2023-09-27 10:53:55 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2023-09-27 10:58:42 +0000
commit07217e578b9cc450f63caa2ed5cc3b8325999a8b (patch)
tree36596146f5f4aa2e12e54b8cd0e14450ab098acb
parent080478034ac8ba6bf5cc2edc240385d8ad4c4048 (diff)
downloadports-07217e578b9cc450f63caa2ed5cc3b8325999a8b.tar.gz
ports-07217e578b9cc450f63caa2ed5cc3b8325999a8b.zip
security/vuxml: Fix make newentry CVE_ID
Fix description body, broken when introducing SA_ID Fixes: e90a0b117fdc61d6d6bc4b02a4b7b5be5a878b2d
-rw-r--r--security/vuxml/files/newentry.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/security/vuxml/files/newentry.sh b/security/vuxml/files/newentry.sh
index 58b2d874ec7e..fc51fca10d64 100644
--- a/security/vuxml/files/newentry.sh
+++ b/security/vuxml/files/newentry.sh
@@ -60,12 +60,7 @@ topic=""
source="SO-AND-SO"
upstream_fix=""
impact=""
-DESC_BODY="<body xmlns=\"http://www.w3.org/1999/xhtml\">
- <p>${source} reports:</p>
- <blockquote cite=\"${references}\">
- <p>${details}</p>
- </blockquote>
- </body>"
+DESC_BODY=""
# Try to retrieve information if a CVE identifier was provided
@@ -99,6 +94,13 @@ if [ -n "${CVE_ID}" ]; then
references=$(jq -r "${pref}.url|@html" "${tmp_nvd}" | tr " " "\n") || exit 1
source=$(jq -r "${pref}.source|@html" "${tmp_nvd}" | tr " " "\n") || exit 1
topic=$(jq -r ".containers.cna.title|@html" "${tmp_mitre}" ) || exit 1
+
+DESC_BODY="<body xmlns=\"http://www.w3.org/1999/xhtml\">
+ <p>${source} reports:</p>
+ <blockquote cite=\"${references}\">
+ <p>${details}</p>
+ </blockquote>
+ </body>"
fi
if [ -n "${SA_ID}" ]; then