Committer: vsukhanov
LJSV-1153: Incorrect repost button code breaks display of pages where the entry appearsU trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl =================================================================== --- trunk/cgi-bin/cleanhtml.pl 2010-09-09 09:01:30 UTC (rev 17320) +++ trunk/cgi-bin/cleanhtml.pl 2010-09-09 09:10:14 UTC (rev 17321) @@ -339,7 +339,7 @@ # </lj-repost> # if ($tag eq "lj-repost" and $ljrepost_allowed){ - next TOKEN if $opencount{$tag}; # no support for nested <lj-repost> tags + next TOKEN if ref $opencount{$tag}; # no support for nested <lj-repost> tags my $button = LJ::ehtml($attr->{button}) || LJ::Lang::ml("repost.default_button"); if ($attr->{'/'}){ # short <lj-repost /> form of tag @@ -965,7 +965,7 @@ $newdata .= "<a name='cutid$cutcount-end'></a>" } } - elsif ($tag eq "lj-repost" and $ljrepost_allowed and exists $opencount{$tag}){ + elsif ($tag eq "lj-repost" and $ljrepost_allowed and ref $opencount{$tag}){ ## Add repost button ## If there is opening <lj-repost> tag than $opencount{$tag} exists. ##