Committer: ssafronova
LJSUP-6110: Livejournal Live - LJSUP-7081: Incorrect cut of long postU trunk/cgi-bin/ljtextutil.pl
Modified: trunk/cgi-bin/ljtextutil.pl =================================================================== --- trunk/cgi-bin/ljtextutil.pl 2010-10-07 07:06:09 UTC (rev 17515) +++ trunk/cgi-bin/ljtextutil.pl 2010-10-07 07:17:11 UTC (rev 17516) @@ -460,7 +460,7 @@ my $semi_idx = rindex($short_text, ';'); my $colon_idx = rindex($short_text, ':'); - my $max = (sort {$b cmp $a} $space_idx, $dot_idx, $comma_idx, $semi_idx, $colon_idx)[0]; + my $max = (sort {$b <=> $a} $space_idx, $dot_idx, $comma_idx, $semi_idx, $colon_idx)[0]; $short_text = substr($text, 0, $max); # attention: ࡄ must not lose ';' sign