vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17221: LJSV-1102: fix encoding in lj-repost tag...

Committer: vsukhanov
LJSV-1102: fix encoding in lj-repost tag.
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2010-08-30 03:05:32 UTC (rev 17220)
+++ trunk/cgi-bin/cleanhtml.pl	2010-08-30 07:33:57 UTC (rev 17221)
@@ -974,7 +974,10 @@
                     # !!! avoid calling any 'text' methods on $entry, 
                     #     it can produce inifinite loop of cleanhtml calls.
 
-                    $subject ||= LJ::ehtml($entry->subject_raw || LJ::Lang::ml("repost.default_subject"));
+                    unless ($subject){
+                        $subject = LJ::ehtml($entry->subject_raw || LJ::Lang::ml("repost.default_subject"));
+                        $subject = Encode::decode_utf8($subject) if $subject;
+                    }
                     $captured = LJ::Lang::ml("repost.wrapper", { 
                                                 username => $entry->poster->username,
                                                 url      => $entry->url,

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