Changeset 1684

Show
Ignore:
Timestamp:
09/15/06 02:09:39
Author:
miyagawa
Message:

Publich::CHTML: update filepath generator to use id_safe

Files:

Legend:

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

    r1632 r1684  
    4747 
    4848    my $feed = $args->{feed} or return; 
    49     my $feed_path = $self->work . '/feeds/' . $feed->id
     49    my $feed_path = $self->work . '/feeds/' . $feed->id_safe
    5050    my $publish_path = "$feed_path/" . $self->id; 
    5151 
     
    8080 
    8181    $self->add(+{ 
    82         feed_link => './feeds/' . $feed->id . '/' . $self->id . '.html', 
     82        feed_link => './feeds/' . $feed->id_safe . '/' . $self->id . '.html', 
    8383        title  => $feed->title || '(no-title)', 
    8484        lastdate => $feed->entries->[-1]->date, 
  • trunk/plagger/t/plugins/Publish-CHTML/publish.t

    r1536 r1684  
    3636file_contains($main::output, qr{<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">}); 
    3737file_contains($main::output, qr{<title>Boofy</title>}); 
     38file_contains($main::output, qr{feeds/[0-9a-f]{32}/\d+\.html});