From 4b1435f958654d5ebdcac67a566058fac2d31fee Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 17 Feb 2017 16:40:50 -0500 Subject: [PATCH] Make link from redirect URL If the HTTP Status Code includes a redirect URL, then make the URL a hyper link in the HTTP output. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 88cdb95..2283d2c 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1423,7 +1423,7 @@ run_http_header() { case $HTTP_STATUS_CODE in 301|302|307|308) redirect=$(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n') - out ", redirecting to \"$redirect\"" + out ", redirecting to \""; pr_url "$redirect"; out "\"" if [[ $redirect == "http://"* ]]; then pr_svrty_high " -- Redirect to insecure URL (NOT ok)" fileout "HTTP_STATUS_CODE" "HIGH" \, "Redirect to insecure URL. Url: \"$redirect\""