summaryrefslogtreecommitdiffstats
path: root/functions/connection.php
diff options
context:
space:
mode:
authorRemy <relst@relst.nl>2015-03-18 14:46:03 +0100
committerRemy <relst@relst.nl>2015-03-18 14:46:03 +0100
commit65010ca6390b1991738b3a71b8bec4277293f648 (patch)
tree86a62529672b996de3684488f807f79fbcd90264 /functions/connection.php
parentaefbe8256b8e67ce150ac4a8d30822f8096ac748 (diff)
downloadssl-decoder-65010ca6390b1991738b3a71b8bec4277293f648.zip
ssl-decoder-65010ca6390b1991738b3a71b8bec4277293f648.tar.gz
ssl-decoder-65010ca6390b1991738b3a71b8bec4277293f648.tar.bz2
better hostname verification
Diffstat (limited to 'functions/connection.php')
-rw-r--r--functions/connection.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/functions/connection.php b/functions/connection.php
index b0357b9..de8cdb8 100644
--- a/functions/connection.php
+++ b/functions/connection.php
@@ -225,12 +225,14 @@ if ( $read_stream === false ) {
if ( fixed_gethostbyname($host) ) {
?>
<tr>
- <td>IP / Hostname</td>
+ <td>IP / Hostname / Port</td>
<td>
<?php
- echo fixed_gethostbyname($host);
+ echo htmlspecialchars(fixed_gethostbyname($host));
echo " - ";
- echo gethostbyaddr(fixed_gethostbyname($host));
+ echo htmlspecialchars(gethostbyaddr(fixed_gethostbyname($host)));
+ echo " - ";
+ echo htmlspecialchars($port);
?>
</td>
</tr>