From 58353d35220f99fdae6b5e5e0f2c55027b6499be Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 6 Mar 2020 14:25:07 -0500 Subject: [PATCH] Fix typo in emphasize_stuff_in_headers() This commit fixes a typo in emphasize_stuff_in_headers() wherer ${yellow} was used rather than ${html_yellow} in the creation of the HTML output. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 48e0da4..577c330 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2812,13 +2812,13 @@ emphasize_stuff_in_headers(){ -e "s/X-Runtime/${html_yellow}X-Runtime${html_off}/g" \ -e "s/X-Rack-Cache/${html_yellow}X-Rack-Cache${html_off}/g" \ -e "s/X-Pingback/${html_yellow}X-Pingback${html_off}/g" \ - -e "s/X-Permitted-Cross-Domain-Policies/${yellow}X-Permitted-Cross-Domain-Policies${html_off}/g" \ + -e "s/X-Permitted-Cross-Domain-Policies/${html_yellow}X-Permitted-Cross-Domain-Policies${html_off}/g" \ -e "s/X-AspNet-Version/${html_yellow}X-AspNet-Version${html_off}/g")" \ -e "s/x-note/${html_yellow}x-note${html_off}/g" \ -e "s/X-Global-Transaction-ID/${html_yellow}X-Global-Transaction-ID${html_off}/g" \ -e "s/x-global-transaction-id/${html_yellow}x-global-transaction-id${html_off}/g" \ -e "s/Alt-Svc/${html_yellow}Alt-Svc${html_off}/g" \ - -e "s/system-wsgw-management-loopback/${yellow}system-wsgw-management-loopback${html_off}/g" + -e "s/system-wsgw-management-loopback/${html_yellow}system-wsgw-management-loopback${html_off}/g" #FIXME: this is double code. The pattern to emphasize would fit better into # one function. # Also we need another function like run_other_header as otherwise "Link" "Alt-Svc" will never be found.