Fixed file output error in case of insecure redirect

This commit is contained in:
Frank Breedijk 2017-09-11 16:59:34 +02:00
parent 50287ef2c4
commit 49ed49f505

View File

@ -1416,7 +1416,7 @@ run_http_header() {
out ", redirecting to \""; pr_url "$redirect"; out "\"" out ", redirecting to \""; pr_url "$redirect"; out "\""
if [[ $redirect == "http://"* ]]; then if [[ $redirect == "http://"* ]]; then
pr_svrty_high " -- Redirect to insecure URL (NOT ok)" pr_svrty_high " -- Redirect to insecure URL (NOT ok)"
fileout "HTTP_STATUS_CODE" "HIGH" \, "Redirect to insecure URL. Url: \"$redirect\"" fileout "insecure_redirect" "HIGH" "Redirect to insecure URL. Url: \"$redirect\""
fi fi
fileout "HTTP_STATUS_CODE" "INFO" \ fileout "HTTP_STATUS_CODE" "INFO" \
"Testing HTTP header response @ \"$URL_PATH\", $HTTP_STATUS_CODE$msg_thereafter, redirecting to \"$redirect\"" "Testing HTTP header response @ \"$URL_PATH\", $HTTP_STATUS_CODE$msg_thereafter, redirecting to \"$redirect\""