diff options
author | Remy <relst@relst.nl> | 2015-08-30 13:11:03 +0200 |
---|---|---|
committer | Remy <relst@relst.nl> | 2015-08-30 13:11:03 +0200 |
commit | a5e71f1f01cfe16fd94f0507aba8e70cb6321b6a (patch) | |
tree | c19121d2110b6fd56f9be1b6ec509ce1716090aa | |
parent | 4a92c5e98ff997a6474866118206df30f8e53b1d (diff) | |
download | ssl-decoder-a5e71f1f01cfe16fd94f0507aba8e70cb6321b6a.zip ssl-decoder-a5e71f1f01cfe16fd94f0507aba8e70cb6321b6a.tar.gz ssl-decoder-a5e71f1f01cfe16fd94f0507aba8e70cb6321b6a.tar.bz2 |
remove spaces from field names, fix #33
-rw-r--r-- | functions/connection.php | 2 | ||||
-rw-r--r-- | functions/ocsp.php | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/functions/connection.php b/functions/connection.php index b88dcd0..600a35b 100644 --- a/functions/connection.php +++ b/functions/connection.php @@ -519,7 +519,7 @@ function ssl_conn_metadata($data) { echo "<table class='table'>"; foreach ($data["ocsp_stapling"] as $key => $value) { if ($key != "working") { - echo "<tr><td>" . htmlspecialchars($key) . "</td><td>" . htmlspecialchars($value) . "</td></tr>"; + echo "<tr><td>" . htmlspecialchars(ucfirst(str_replace('_', ' ', $key))) . "</td><td>" . htmlspecialchars($value) . "</td></tr>"; } } echo "</table>"; diff --git a/functions/ocsp.php b/functions/ocsp.php index 12397f9..8a5e54e 100644 --- a/functions/ocsp.php +++ b/functions/ocsp.php @@ -38,13 +38,13 @@ function ocsp_stapling($host, $ip, $port) { } } $result = array("working" => 1, - "Cert Status" => $lines["Cert Status"], - "This Update" => $lines["This Update"], - "Next Update" => $lines["Next Update"], - "Responder ID" => $lines["Responder Id"], - "Hash Algorithm" => $lines["Hash Algorithm"], - "Signature Algorithm" => $lines["Signature Algorithm"], - "Issuer Name Hash" => $lines["Issuer Name Hash"]); + "cert_status" => $lines["Cert Status"], + "this_update" => $lines["This Update"], + "next_update" => $lines["Next Update"], + "responder_id" => $lines["Responder Id"], + "hash_algorithm" => $lines["Hash Algorithm"], + "signature_algorithm" => $lines["Signature Algorithm"], + "issuer_name_hash" => $lines["Issuer Name Hash"]); } return $result; } |