Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17188: LJSV-1162: Cyrillic characters in an emb...

Committer: gariev
LJSV-1162: Cyrillic characters in an embed code cause error, entry does not post.

U   trunk/cgi-bin/LJ/EmbedModule.pm
Modified: trunk/cgi-bin/LJ/EmbedModule.pm
===================================================================
--- trunk/cgi-bin/LJ/EmbedModule.pm	2010-08-24 09:12:05 UTC (rev 17187)
+++ trunk/cgi-bin/LJ/EmbedModule.pm	2010-08-24 09:17:31 UTC (rev 17188)
@@ -234,6 +234,7 @@
         # we decided to switch back to REGULAR and have something in embed buffer
         # so let's save buffer as an embed module and start all over again
         if ($newstate == REGULAR && $embed) {
+            $embed = Encode::encode_utf8($embed);
             $embed_attrs{id} = $class->save_module(
                 id => ($preview ? $next_preview_id++ : $embed_attrs{id}),
                 contents => $embed,

Tags: gariev, livejournal, pm
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