summaryrefslogtreecommitdiff
path: root/versions.php
diff options
context:
space:
mode:
authorE Athena Server <eathena@platinum.linux.pl>2010-11-19 10:14:27 +0100
committerJared Adams <jaxad0127@gmail.com>2010-12-20 20:50:31 -0700
commitfd02b65fa6c830a337a674d6c62da50d172b49dd (patch)
treecb3b827cf4f0e4d520f90080738c2a3148263996 /versions.php
parent945528f7bcffbb4ad895b8e50f1bdfb7b9c9bbdc (diff)
downloadserverdata-fd02b65fa6c830a337a674d6c62da50d172b49dd.tar.gz
serverdata-fd02b65fa6c830a337a674d6c62da50d172b49dd.tar.bz2
serverdata-fd02b65fa6c830a337a674d6c62da50d172b49dd.tar.xz
serverdata-fd02b65fa6c830a337a674d6c62da50d172b49dd.zip
Properly escape versions
Diffstat (limited to 'versions.php')
-rw-r--r--versions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/versions.php b/versions.php
index c805f77e..601fb252 100644
--- a/versions.php
+++ b/versions.php
@@ -18,8 +18,8 @@ arsort($verinfo);
$total = count($versions);
print '<table border="1px" cellspacing="0px" cellpadding="1px"><tr><th>Client</th><th title="Count">n</th><th title="Percent of total">%</th></tr>';
foreach($verinfo as $vi=>$vc) {
- echo '<tr><td>' . $vi . '</td><td>' . $vc . '</td><td>' . round((100 / $total) * $vc, 2) . '</td></tr>';
+ echo '<tr><td>' . htmlspecialchars($vi) . '</td><td>' . $vc . '</td><td>' . round((100 / $total) * $vc, 2) . '</td></tr>';
}
print '</table><br />Total number of connections: ' . $total . '<br />Number of different clients reported: '
. count($verinfo) . '<br /><br />Data retrieved: ' . date('D M d y, g:i a T', filemtime($file));
-?> \ No newline at end of file
+?>