X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/809f7483740d9eae0abd77aa670fe26b5ce70c41..7aad7c29843ca2e7a6c6a5bf648ba71ef75ab6e8:/channels/index.php diff --git a/channels/index.php b/channels/index.php index 536c779..8b52d77 100644 --- a/channels/index.php +++ b/channels/index.php @@ -14,7 +14,7 @@ $channels = $rpc->channel()->getAll(); ?>
Name | Users | @@ -27,13 +27,14 @@ $channels = $rpc->channel()->getAll(); foreach($channels as $channel) { echo "|||||
---|---|---|---|---|---|---|
".$channel->name." | "; + echo "".htmlspecialchars($channel->name)." | "; echo "".$channel->num_users." | "; $modes = (isset($channel->modes)) ? "+" . $channel->modes : "".$modes." | "; - $topic = (isset($channel->topic)) ? $channel->topic : ""; + echo "".htmlspecialchars($modes)." | "; + $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : ""; echo "".$topic." | "; echo "".$channel->creation_time." | "; + echo "