]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: avoid truncating topic at 30 chars
authorEric Wong <e@80x24.org>
Fri, 4 Dec 2015 01:02:24 +0000 (01:02 +0000)
committerEric Wong <e@80x24.org>
Fri, 4 Dec 2015 01:02:24 +0000 (01:02 +0000)
It's potentially unsafe (leading to hidden messages) at any level.

lib/PublicInbox/View.pm

index d8fb1cb5ba0b95761ed4924725bcdd54d59d68a5..f34e1f36d00e20a47754c6b732e7234d36a62e43 100644 (file)
@@ -822,7 +822,6 @@ sub add_topic {
                unless ($level == 0) {
                        $topic =~ s/\A\s*\[[^\]]+\]\s*//g;
                }
-               $topic = substr($topic, 0, 30);
 
                if (++$state->{subjs}->{$topic} == 1) {
                        push @{$state->{order}}, [ $level, $subj, $topic ];