diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | functions/connection.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c5e017c..123f246 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fix issue with OCSP validation and HTTP 1.1 (StartCOM) - Fix CRL validation issue for self signed CRL URI's - Fix http header case sensitive validation (HSTS, HPKP) +- Add green color if HSTS/HPKP headers are available. - Relicense under Affero GPL ## 1.8 diff --git a/functions/connection.php b/functions/connection.php index 81ec018..ba30c5a 100644 --- a/functions/connection.php +++ b/functions/connection.php @@ -500,12 +500,14 @@ if ( $read_stream === false ) { <td> <?php if ( $headers["strict-transport-security"] ) { + echo "<span class='text-success glyphicon glyphicon-ok'></span> - <span class='text-success'>"; if ( is_array($headers["strict-transport-security"])) { echo htmlspecialchars(substr($headers["strict-transport-security"][0], 0, 50)); echo "<br > <i>HSTS header was found multiple times. Only showing the first one.</i>"; } else { echo htmlspecialchars(substr($headers["strict-transport-security"], 0, 50)); } + echo "</span>"; } else { echo '<span class="text-danger glyphicon glyphicon-remove"></span> - <span class="text-danger">Not Set</span>'; } @@ -517,9 +519,11 @@ if ( $read_stream === false ) { <td> <?php if ( $headers["public-key-pins"] ) { + echo "<span class='text-success glyphicon glyphicon-ok'></span> - <span class='text-success'>"; if ( is_array($headers["public-key-pins"])) { echo htmlspecialchars(substr($headers["public-key-pins"][0], 0, 255)); echo "<br > <i>HPKP header was found multiple times. Only showing the first one.</i>"; + echo "</span>"; } else { echo htmlspecialchars(substr($headers["public-key-pins"], 0, 255)); } |