sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r17942: OPSC-212 extra and title attributes utf-...

Committer: vtroitsky
OPSC-212 extra and title attributes utf-8 encoded/decoded
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2010-12-16 06:12:07 UTC (rev 17941)
+++ trunk/cgi-bin/cleanhtml.pl	2010-12-16 07:38:42 UTC (rev 17942)
@@ -617,6 +617,7 @@
             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);

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