fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-05-26 11:51 am

[dw-free] Crossposted entries on the same page as entries with accented characters, mangles these ch

[commit: http://hg.dwscoalition.org/dw-free/rev/2611214434c0]

http://bugs.dwscoalition.org/show_bug.cgi?id=2639

Tell Perl that we're handling the UTF stuff on our own.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/S2.pm
--------------------------------------------------------------------------------
diff -r 26d7bb11b894 -r 2611214434c0 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm	Tue May 25 18:20:37 2010 +0800
+++ b/cgi-bin/LJ/S2.pm	Wed May 26 19:56:58 2010 +0800
@@ -1851,10 +1851,11 @@ sub Entry
         foreach my $xpostkey ( keys %$xposthash ) {
             my $xpostvalue = $xposthash->{$xpostkey};
             if ( $xpostvalue->{url} ) {
+                my $xpost_url = LJ::no_utf8_flag( $xpostvalue->{url} );
                 if ( $xpostlinks ) {
                     $xpostlinks = $xpostlinks . " ";
                 }
-                $xpostlinks = $xpostlinks . '<a href = "' .  $xpostvalue->{url} . '">' .  $xpostvalue->{url} . '</a>';
+                $xpostlinks = $xpostlinks . '<a href = "' .  $xpost_url . '">' .  $xpost_url . '</a>';
             }
         }
         if ( $xpostlinks ) {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org