mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-08 09:40:57 +01:00
Correctly grab redirect url
This commit is contained in:
parent
b2e2add7f3
commit
0f4ee8be7f
@ -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\""
|
||||
|
Loading…
Reference in New Issue
Block a user