From f5506ada5998ec927eb475fed28aebb818aee083 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 16 Nov 2021 10:44:00 +0000 Subject: [PATCH] Bin: Analyse-headers: makes includesubdomains check case insensitive --- bin/.bin/webtest/analyse-headers | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/.bin/webtest/analyse-headers b/bin/.bin/webtest/analyse-headers index 1497a944..5c98bae0 100755 --- a/bin/.bin/webtest/analyse-headers +++ b/bin/.bin/webtest/analyse-headers @@ -291,7 +291,7 @@ test_strict-transport-security(){ ret=$((ret>1 ? ret : 1)) fi - if ! echo "$value" | grep -q 'includeSubDomains'; then + if ! echo "$value" | grep -qi 'includeSubDomains'; then output+="The ${ORANGE}includeSubdomains${NC} property was not found. \ When included browsers won't connect to subdomains unless over an encrypted \ channel.\n\n" @@ -556,7 +556,6 @@ missingHeaders="x-frame-options strict-transport-security content-security-policy x-xss-protection -x-content-type-options feature-policy permissions-policy cache-control