Skip to content

Commit ad912ea

Browse files
committed
Fix typo + tags
1 parent 12036fb commit ad912ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

testssl.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,7 @@ emphasize_stuff_in_headers(){
31273127
-e "s/X-Powered-By/${yellow}X-Powered-By${off}/g" \
31283128
-e "s/X-UA-Compatible/${yellow}X-UA-Compatible${off}/g" \
31293129
-e "s/Link/${yellow}Link${off}/g" \
3130-
-e "s/X-DNS-Prefetch-Control/${html_yellow}X-DNS-Prefetch-Control${html_off}/g" \
3130+
-e "s/X-DNS-Prefetch-Control/${yellow}X-DNS-Prefetch-Control${off}/g" \
31313131
-e "s/X-Rack-Cache/${yellow}X-Rack-Cache${off}/g" \
31323132
-e "s/X-Runtime/${yellow}X-Runtime${off}/g" \
31333133
-e "s/X-Pingback/${yellow}X-Pingback${off}/g" \
@@ -3183,14 +3183,13 @@ emphasize_stuff_in_headers(){
31833183
-e "s/X-Pingback/${html_yellow}X-Pingback${html_off}/g" \
31843184
-e "s/X-Permitted-Cross-Domain-Policies/${html_yellow}X-Permitted-Cross-Domain-Policies${html_off}/g" \
31853185
-e "s/X-AspNet-Version/${html_yellow}X-AspNet-Version${html_off}/g" \
3186-
-e "s/X-AspNetMvc-Version/${yellow}X-AspNetMvc-Version${off}/g" \
3186+
-e "s/X-AspNetMvc-Version/${html_yellow}X-AspNetMvc-Version${html_off}/g" \
31873187
-e "s/x-note/${html_yellow}x-note${html_off}/g" \
31883188
-e "s/X-Global-Transaction-ID/${html_yellow}X-Global-Transaction-ID${html_off}/g" \
31893189
-e "s/x-global-transaction-id/${html_yellow}x-global-transaction-id${html_off}/g" \
31903190
-e "s/Alt-Svc/${html_yellow}Alt-Svc${html_off}/g" \
31913191
-e "s/system-wsgw-management-loopback/${html_yellow}system-wsgw-management-loopback${html_off}/g"
3192-
#FIXME: this is double code. The pattern to emphasize would fit better into
3193-
# one function.
3192+
#FIXME: this is double code. The pattern to emphasize would fit better into one function.
31943193
# Also we need another function like run_other_header as otherwise "Link" "Alt-Svc" will never be found.
31953194
# And: I matches case sensitive only which might not detect all banners. (sed ignorecase is not possible w/ BSD sed)
31963195
else
@@ -3439,7 +3438,7 @@ run_security_headers() {
34393438

34403439
pr_bold " Security headers "
34413440
# X-XSS-Protection is useless and at worst harmful, see https://news.ycombinator.com/item?id=20472947
3442-
# Expect-CT is depecated, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT
3441+
# Expect-CT is deprecated, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT
34433442
for header_and_svrty in "X-Frame-Options OK" \
34443443
"X-Content-Type-Options OK" \
34453444
"Content-Security-Policy OK" \

0 commit comments

Comments
 (0)