Committer: afedorov
OPSC-230: Some new corrections U trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl =================================================================== --- trunk/cgi-bin/cleanhtml.pl 2011-01-18 10:38:24 UTC (rev 18043) +++ trunk/cgi-bin/cleanhtml.pl 2011-01-18 10:40:59 UTC (rev 18044) @@ -634,12 +634,12 @@ } elsif ($tag eq "lj-app") { - next TOKEN if $LJ::DISABLED{'userapps'}; - map { $attr->{$_} = Encode::encode_utf8($attr->{$_}) } keys %$attr; - my $app = LJ::UserApps->get_application( %$attr ); - next TOKEN unless $app && $app->can_show_restricted; - $newdata .= Encode::decode_utf8($app->ljapp_display($attr->{extra}, $attr->{title}), Encode::FB_QUIET); - next TOKEN; + next TOKEN if $LJ::DISABLED{'userapps'}; + my %app_attr = map { $_ => Encode::encode_utf8($attr->{$_}) } keys %$attr; + my $app = LJ::UserApps->get_application( %app_attr ); + next TOKEN unless $app && $app->can_show_restricted; + $newdata .= Encode::decode_utf8($app->ljapp_display($attr->{extra}, $attr->{title}), Encode::FB_QUIET); + next TOKEN; } elsif ($tag eq "lj") {