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

[livejournal] r23450: iLJSUP-14447: Wrong spoiler and cut plac...

Committer: wisest-owl
iLJSUP-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-12-11 07:14:19 UTC (rev 23449)
+++ trunk/cgi-bin/cleanhtml.pl	2012-12-11 09:00:59 UTC (rev 23450)
@@ -739,7 +739,7 @@
                 my $link_text = sub {
                     my $text =  LJ::Lang::ml('fcklang.readmore');
                     $text = Encode::decode_utf8($text) if $text;
-                    if ($attr->{'text'}) {
+                    if (exists $attr->{'text'} && length $attr->{'text'}) {
                         $text = $attr->{'text'};
                         $text =~ s/</&lt;/g;
                         $text =~ s/>/&gt;/g;

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