From 0f4ee8be7f8b845d7772c0d2c7a3966c139a7903 Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Mon, 21 Dec 2015 15:52:55 +0100 Subject: [PATCH] Correctly grab redirect url --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index ae76004..3b11423 100755 --- a/testssl.sh +++ b/testssl.sh @@ -692,7 +692,7 @@ run_http_header() { out " $status_code$msg_thereafter" case $status_code in 301|302|307|308) - redirect = $(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n') + redirect=`$(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n')` out ", redirecting to \"$redirect\"" output_finding "status_code" "$NODEIP" "$PORT" "info" \ "Testing HTTP header response @ \"$URL_PATH\", $status_code$msg_thereafter, redirecting to \"$redirect\""