Merge pull request #202 from rootcoma/top_scores

url encoding usernames on top.php
This commit is contained in:
tannn 2013-12-01 19:03:13 -08:00
commit cb6d847b1e
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ function replaceTimespanVariable($t) {
foreach($result as $res) {
echo '<tr>';
echo '<td>' . $currentRank . '</td>';
echo '<td><a href="profile.php?username=' . $res['username'] . '">' . $res['username'] . '</a></td>';
echo '<td><a href="profile.php?username=' . rawurlencode($res['username']) . '">' . $res['username'] . '</a></td>';
echo '<td>' . number_format($res['points'],0) . '</td>';
echo '</tr>';
$currentRank++;