Jelajahi Sumber

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

doomshammer 25 tahun lalu
induk
melakukan
0c3b7edc03
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      pisg.pl

+ 2 - 2
pisg.pl

@@ -2154,8 +2154,8 @@ 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"} = 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 (')
             # Strip off the quotes (')
             $topic =~ s/^\'(.*)\'$/$1/;
             $topic =~ s/^\'(.*)\'$/$1/;