Changeset 1809

Show
Ignore:
Timestamp:
10/30/06 15:21:07
Author:
miyagawa
Message:

fix bad Publish::Feed content element that's b64 encoded. Thanks to _33rpm

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm

    r1741 r1809  
    6868                $entry->content($e->body); 
    6969            } else { 
    70                 $entry->{entry}->content($e->body); 
     70                $entry->{entry}->content($e->body->utf8); 
    7171            } 
    7272        } 
  • trunk/plagger/t/plugins/Publish-Feed/atom1.t

    r1358 r1809  
    88 
    99test_plugin_deps; 
    10 plan tests => 2
     10plan tests => 4
    1111run_eval_expected; 
    1212 
     
    3434is $feed->version, '1.0'; 
    3535is $feed->title, 'Bulknews::Subtech'; 
     36unlike( ($feed->entries)[0]->content->as_xml, qr/CgkJPGRpdiBjbGFz/); 
     37file_doesnt_contain($main::output, qr!<content xmlns="http://www.w3.org/2005/Atom">!); 
     38