From 5e3d8755a11b8f394036defb4d229b1e23c51c4c Mon Sep 17 00:00:00 2001 From: Janosch Maier Date: Wed, 18 Sep 2019 19:23:17 +0200 Subject: [PATCH] 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. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 06f879e..d0cc3ad 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3046,7 +3046,7 @@ run_security_headers() { fi pr_litecyan "$header" outln " $HEADERVALUE" # shouldn't be that long - fileout "$header" "INFO" "$header: $HEADERVALUE" + fileout "$header" "INFO" "$HEADERVALUE" fi done #TODO: I am not testing for the correctness or anything stupid yet, e.g. "X-Frame-Options: allowall" or Access-Control-Allow-Origin: *