mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 15:41:02 +01:00 
			
		
		
		
	Use of color in emphasize_stuff_in_headers()
`emphasize_stuff_in_headers()` only adds color to the text being printed to the terminal if `$COLOR` is 2. So, the same should be the case for the HTML output.
This commit is contained in:
		
							parent
							
								
									34a512a363
								
							
						
					
					
						commit
						dcfee43b0d
					
				| @ -1875,6 +1875,7 @@ emphasize_stuff_in_headers(){ | ||||
|           -e "s/X-AspNet-Version/${yellow}X-AspNet-Version${off}/g" | ||||
| 
 | ||||
|      if "$do_html"; then | ||||
|           if [[ $COLOR -eq 2 ]]; then | ||||
|                html_out "$(tm_out "$1" | sed -e 's/\&/\&/g' \ | ||||
|                     -e 's/</\</g' -e 's/>/\>/g' -e 's/"/\"/g' -e "s/'/\'/g" \ | ||||
|                     -e "s/\([0-9]\)/${html_brown}\1${html_off}/g" \ | ||||
| @ -1906,6 +1907,9 @@ emphasize_stuff_in_headers(){ | ||||
|                     -e "s/X-Powered-By/${html_yellow}X-Powered-By${html_off}/g" \ | ||||
|                     -e "s/X-UA-Compatible/${html_yellow}X-UA-Compatible${html_off}/g" \ | ||||
|                     -e "s/X-AspNet-Version/${html_yellow}X-AspNet-Version${html_off}/g")" | ||||
|           else | ||||
|                html_out "$(html_reserved "$1")" | ||||
|           fi | ||||
|           html_out "\n" | ||||
|      fi | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user