Explorar el Código

Added htmlentities() to $randomline-output... looked really ugly before

doomshammer hace 25 años
padre
commit
4609c6200c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pisg.pl

+ 1 - 1
pisg.pl

@@ -1286,7 +1286,7 @@ sub activenicks
         "<td bgcolor=\"#$col_r$col_g$col_b\">".sprintf("%.1f",$ch/$line)."</td>"
         : "")
         ."<td bgcolor=\"#$col_r$col_g$col_b\">");
-        html("\"$randomline\"</td>");
+        html("\"" . htmlentities($randomline) . "\"</td>");
 
         if ($users->{userpics}{$nick}) {
             html("<td bgcolor=\"#$col_r$col_g$col_b\" align=\"center\"><img valign=\"middle\" src=\"$conf->{imagepath}$users->{userpics}{$nick}\"></td>");