mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
also remove carriage returns, fix for csv
This commit is contained in:
parent
b2e4df60ca
commit
394f186000
@ -453,11 +453,10 @@ fileout_footer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fileout() { # ID, SEVERITY, FINDING
|
fileout() { # ID, SEVERITY, FINDING
|
||||||
local finding="$5"
|
local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")")
|
||||||
|
|
||||||
if "$do_json"; then
|
if "$do_json"; then
|
||||||
"$FIRST_FINDING" || echo "," >> $JSONFILE
|
"$FIRST_FINDING" || echo "," >> $JSONFILE
|
||||||
finding=$(newline_to_spaces "$(strip_quote "$3")")
|
|
||||||
echo -e "
|
echo -e "
|
||||||
{
|
{
|
||||||
\"id\" : \"$1\",
|
\"id\" : \"$1\",
|
||||||
@ -469,7 +468,7 @@ fileout() { # ID, SEVERITY, FINDING
|
|||||||
fi
|
fi
|
||||||
# does the following do any sanitization?
|
# does the following do any sanitization?
|
||||||
if "$do_csv"; then
|
if "$do_csv"; then
|
||||||
echo -e \""$1\"",\"$NODE/$NODEIP\",\"$PORT"\",\""$2"\",\"$(strip_quote "$3")\"" >>$CSVFILE
|
echo -e \""$1\"",\"$NODE/$NODEIP\",\"$PORT"\",\""$2"\",\""$finding"\"" >>$CSVFILE
|
||||||
fi
|
fi
|
||||||
"$FIRST_FINDING" && FIRST_FINDING=false
|
"$FIRST_FINDING" && FIRST_FINDING=false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user