mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
remove duplicate header name for other_header in file output
The Finding of other_headers such as "Referrer-Policy" during file output are displayed as `$header: $HEADERVALUE` instead of only `$HEADERVALUE` as the good_headers. This leads to duplicate information e.g. in the JSON output file.
This commit is contained in:
parent
dcd5acb2af
commit
5e3d8755a1
@ -3046,7 +3046,7 @@ run_security_headers() {
|
|||||||
fi
|
fi
|
||||||
pr_litecyan "$header"
|
pr_litecyan "$header"
|
||||||
outln " $HEADERVALUE" # shouldn't be that long
|
outln " $HEADERVALUE" # shouldn't be that long
|
||||||
fileout "$header" "INFO" "$header: $HEADERVALUE"
|
fileout "$header" "INFO" "$HEADERVALUE"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#TODO: I am not testing for the correctness or anything stupid yet, e.g. "X-Frame-Options: allowall" or Access-Control-Allow-Origin: *
|
#TODO: I am not testing for the correctness or anything stupid yet, e.g. "X-Frame-Options: allowall" or Access-Control-Allow-Origin: *
|
||||||
|
Loading…
Reference in New Issue
Block a user