Skip to content

Commit

Permalink
CPE tests
Browse files Browse the repository at this point in the history
- addresses parts of oasis-tcs#710
- backport of 61e78c8
- correct parsing of CPE 2.3 Dictionary (to also capture endings `">` instead of just `"/>`)
  • Loading branch information
tschmidtb51 committed Mar 27, 2024
1 parent 0d9c392 commit fc1d790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csaf_2.0/test/cpe/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ get_dictionary() {
prepare_23_dictionary() {
# Get CPE 2.3 fields
# Correctly decode special characters
grep '<cpe-23:cpe23-item name=' "$CPE".xml | sed -e 's/^.*<cpe-23:cpe23-item name="//' -e 's/"\/>$//' \
grep '<cpe-23:cpe23-item name=' "$CPE".xml | sed -e 's/^.*<cpe-23:cpe23-item name="//' -e 's/"\/\?>$//' \
| sed -e 's/\\&amp;/\\\&/g' \
| sed -e 's/\\&quot;/\\"/g' \
> "$CPE".txt
Expand Down

0 comments on commit fc1d790

Please sign in to comment.