Răsfoiți Sursa

Found a cleaner way... just changed the order of
htmlentities and replace_links... think this works finer

doomshammer 25 ani în urmă
părinte
comite
0c3b7edc03
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      pisg.pl

+ 2 - 2
pisg.pl

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