Skip to content

Commit

Permalink
security/vuxml: Fix make newentry CVE_ID
Browse files Browse the repository at this point in the history
Fix description body, broken when introducing SA_ID

Fixes:	e90a0b1
  • Loading branch information
fernape committed Sep 27, 2023
1 parent 0804780 commit 07217e5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions security/vuxml/files/newentry.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07217e5

Please sign in to comment.