[livejournal] r22320: LJSV-2012: Wrong encoding of "repost.wra...
Committer: sbelyaev
LJSV-2012: Wrong encoding of "repost.wrapper"U trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl 2012-06-25 09:33:19 UTC (rev 22319)
+++ trunk/cgi-bin/cleanhtml.pl 2012-06-25 10:14:54 UTC (rev 22320)
@@ -456,6 +456,7 @@
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->{'/'}){
+ $button = Encode::decode_utf8($button);
# short <lj-repost /> form of tag
$newdata .= qq[<form action="http://www.$LJ::DOMAIN/update.bml" method="GET">]
. qq[<input type="hidden" name="repost" value="$opts->{cuturl}" />]
