afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2010-01-03 01:26 am

[dw-free] Smart quotes not displaying on RSS feeds

[commit: http://hg.dwscoalition.org/dw-free/rev/611bd8ac71bf]

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

Remove utf8 flag from author string. This iix strange characters replacing
smart quotes, etc, in feeds with an author.

Patch by [personal profile] alierak.

Files modified:
  • cgi-bin/LJ/SynSuck.pm
--------------------------------------------------------------------------------
diff -r 527cb37dc89f -r 611bd8ac71bf cgi-bin/LJ/SynSuck.pm
--- a/cgi-bin/LJ/SynSuck.pm	Sat Jan 02 14:12:14 2010 +0000
+++ b/cgi-bin/LJ/SynSuck.pm	Sun Jan 03 01:25:41 2010 +0000
@@ -267,7 +267,8 @@ sub process_content {
         # we don't want perl knowing that and fucking stuff up
         # for us behind our back in random places all over
         # http://zilla.livejournal.org/show_bug.cgi?id=1037
-        foreach my $attr (qw(id subject text link)) {
+        foreach my $attr (qw(id subject text link author)) {
+            next unless exists $it->{$attr} && defined $it->{$attr};
             $it->{$attr} = LJ::no_utf8_flag ( $it->{$attr} );
         }
 
--------------------------------------------------------------------------------

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