diff --git a/testssl.sh b/testssl.sh index 4c75f6b..1551747 100755 --- a/testssl.sh +++ b/testssl.sh @@ -946,6 +946,7 @@ fileout() { if ( "$do_pretty_json" && [[ "$1" == service ]] ) || show_finding "$severity"; then local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")") # additional quotes will mess up screen output + finding="${finding//\\n/ }" [[ -e "$JSONFILE" ]] && [[ ! -d "$JSONFILE" ]] && fileout_json_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint" "$do_csv" && [[ -n "$CSVFILE" ]] && [[ ! -d "$CSVFILE" ]] && \ fileout_csv_finding "$1" "$NODE/$NODEIP" "$PORT" "$severity" "$finding" "$cve" "$cwe" "$hint"