Skip to content

Commit

Permalink
feat: Hide players city for privacy (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Oct 26, 2024
1 parent d55174d commit 61ca50f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/pages/playerinfo_general.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@
if ($playerdata['country'])
{
echo 'Location: ';
if ($playerdata['city']) {
echo htmlspecialchars($playerdata['city'], ENT_COMPAT) . ', ';
}
// Disabled for privacy reason
// if ($playerdata['city']) {
// echo htmlspecialchars($playerdata['city'], ENT_COMPAT) . ', ';
//}
echo '<a href="'.$g_options['scripturl'].'?mode=countryclansinfo&amp;flag='.$playerdata['flag']."&amp;game=$game\">" . $playerdata['country'] . '</a>';
}
else
Expand Down

0 comments on commit 61ca50f

Please sign in to comment.