git: 07217e578b9c - main - security/vuxml: Fix make newentry CVE_ID

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Wed, 27 Sep 2023 10:58:58 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=07217e578b9cc450f63caa2ed5cc3b8325999a8b

commit 07217e578b9cc450f63caa2ed5cc3b8325999a8b
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-09-27 10:53:55 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-09-27 10:58:42 +0000

    security/vuxml: Fix make newentry CVE_ID
    
    Fix description body, broken when introducing SA_ID
    
    Fixes:  e90a0b117fdc61d6d6bc4b02a4b7b5be5a878b2d
---
 security/vuxml/files/newentry.sh | 14 ++++++++------
 1 file 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