Skip to content

Commit 6a00a60

Browse files
authored
Merge pull request #2051 from dcooper16/fix2049_30
Fix #2049 in 3.0
2 parents c076f56 + 6888045 commit 6a00a60

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

testssl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ fileout() {
946946

947947
if ( "$do_pretty_json" && [[ "$1" == service ]] ) || show_finding "$severity"; then
948948
local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")") # additional quotes will mess up screen output
949+
finding="${finding//\\n/ }"
949950
[[ -e "$JSONFILE" ]] && [[ ! -d "$JSONFILE" ]] && fileout_json_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint"
950951
"$do_csv" && [[ -n "$CSVFILE" ]] && [[ ! -d "$CSVFILE" ]] && \
951952
fileout_csv_finding "$1" "$NODE/$NODEIP" "$PORT" "$severity" "$finding" "$cve" "$cwe" "$hint"

0 commit comments

Comments
 (0)