ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17516: LJSUP-6110: Livejournal Live - LJSUP-708...

Committer: ssafronova
LJSUP-6110: Livejournal Live - LJSUP-7081: Incorrect cut of long post
U   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: &#2116; must not lose ';' sign

Tags: livejournal, pl, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments