Skip to content

Commit

Permalink
open ssllabs links in another tab
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Apr 16, 2016
1 parent e824634 commit 8162fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_https.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ def check_secure_connection(info):
secure_sock.close()
msg = "A verified TLS connection can be established. "
if info.ssllabs_grade is not None:
grade_msg = "<a href=\"https://www.ssllabs.com/ssltest/analyze.html?d={}\">SSL Labs grade</a> is " + info.ssllabs_grade + "."
grade_msg = "<a href=\"https://www.ssllabs.com/ssltest/analyze.html?d={}\" target=\"_blank\">SSL Labs grade</a> is " + info.ssllabs_grade + "."
if info.ssllabs_grade == "F":
good_connection.fail(grade_msg.format(info.domain))
return
msg += grade_msg
else:
msg += "(<a href=\"https://www.ssllabs.com/ssltest/analyze.html?d={}\">SSL Labs report</a>)"
msg += "(<a href=\"https://www.ssllabs.com/ssltest/analyze.html?d={}\" target=\"_blank\">SSL Labs report</a>)"
info.secure_connection_works = True
good_connection.succeed(msg.format(info.domain))

Expand Down

0 comments on commit 8162fe4

Please sign in to comment.