Explorar o código

Topics should have been stripped for mirccodes

doomshammer %!s(int64=25) %!d(string=hai) anos
pai
achega
08c74f66fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pisg.pl

+ 1 - 1
pisg.pl

@@ -2156,7 +2156,7 @@ sub lasttopics
         if ($ltopic > $conf->{topichistory}) { $tlimit = $ltopic - $conf->{topichistory}; }
         if ($ltopic > $conf->{topichistory}) { $tlimit = $ltopic - $conf->{topichistory}; }
 
 
         for (my $i = $ltopic; $i >= $tlimit; $i--) {
         for (my $i = $ltopic; $i >= $tlimit; $i--) {
-            $topics[$i]{"topic"} = htmlentities($topics[$i]{"topic"});
+            $topics[$i]{"topic"} = htmlentities(strip_mirccodes($topics[$i]{"topic"}));
             my $topic = replace_links($topics[$i]{topic});
             my $topic = replace_links($topics[$i]{topic});
             # Strip off the quotes (')
             # Strip off the quotes (')
             $topic =~ s/^\'(.*)\'$/$1/;
             $topic =~ s/^\'(.*)\'$/$1/;