wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r23402: LJSUP-14447: Wrong spoiler and cut place...

Committer: wisest-owl
LJSUP-14447: Wrong spoiler and cut placeholder text

U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-11-30 12:55:25 UTC (rev 23401)
+++ trunk/cgi-bin/cleanhtml.pl	2012-12-03 09:30:50 UTC (rev 23402)
@@ -519,10 +519,9 @@
             if ( $tag eq 'lj-spoiler' ) {
                 next TOKEN unless $ljspoiler_allowed;
 
-                my $title = $attr->{'title'} ||
-                    $attr->{'text'} ||
-                    Encode::decode_utf8(
-                        LJ::Lang::ml('fcklang.ljspoiler.prompt.text') );
+                my $title = exists $attr->{'title'} && length $attr->{'title'}
+                    ? $attr->{'title'}
+                    : $attr->{'text'} || Encode::decode_utf8( LJ::Lang::ml('fcklang.ljspoiler.prompt.text') );
 
                 $title = LJ::ehtml($title);
 

Tags: livejournal, pl, wisest-owl
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