- Fixes for #260
This commit is contained in:
parent
f65fa69c3c
commit
c3269f1927
11
testssl.sh
11
testssl.sh
|
@ -646,11 +646,10 @@ run_http_header() {
|
||||||
out " $status_code$msg_thereafter"
|
out " $status_code$msg_thereafter"
|
||||||
case $status_code in
|
case $status_code in
|
||||||
301|302|307|308)
|
301|302|307|308)
|
||||||
out ", redirecting to \"$(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n')\""
|
redirect=$(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n')
|
||||||
if [[ ( $redirect == https* ) || ( $redirect == /* ) ]]; then
|
out ", redirecting to \"$redirect"\"
|
||||||
# Ok
|
if [[ $redirect == "http://"* ]]; then
|
||||||
else
|
pr_litered " -- Redirect to insecure URL (NOT ok)"
|
||||||
pr_litered " -- Redirect to insecure url (NOT ok)"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
200) ;;
|
200) ;;
|
||||||
|
@ -5479,4 +5478,4 @@ fi
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
|
||||||
# $Id: testssl.sh,v 1.427 2015/12/11 12:13:21 dirkw Exp $
|
# $Id: testssl.sh,v 1.428 2015/12/22 19:31:51 dirkw Exp $
|
||||||
|
|
Loading…
Reference in New Issue