]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - channels/index.php
Merge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel
[irc/unrealircd/unrealircd-webpanel.git] / channels / index.php
index d4318e9479adcda9d4b084d6826f280e42bcd75a..9c9b962aea3576d88a5b55edd5b327fbaef23c0d 100644 (file)
@@ -27,11 +27,11 @@ $channels = $rpc->channel()->getAll();
                foreach($channels as $channel)
                {
                        echo "<tr>";
-                       echo "<td>".$channel->name."</td>";
+                       echo "<td><a href=\"details.php?chan=".urlencode(htmlspecialchars($channel->name))."\">".htmlspecialchars($channel->name)."</a></td>";
                        echo "<td>".$channel->num_users."</td>";
                        $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>";
-                       echo "<td>".$modes."</td>";
-                       $topic = (isset($channel->topic)) ? $channel->topic : "";
+                       echo "<td>".htmlspecialchars($modes)."</td>";
+                       $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : "";
                        echo "<td>".$topic."</td>";
                        echo "<td>".$channel->creation_time."</td>";
                        echo "</tr>";