Committer: wisest-owl
LJSUP-14447: Wrong spoiler and cut placeholder textU 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);