Changeset 185

Show
Ignore:
Timestamp:
02/27/06 06:32:41
Author:
miyagawa
Message:

Filter::TTP: Added a little nasty hack to avoid PAUSE indexer warning and update the POD doc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/TTP.pm

    r184 r185  
    33use base qw( Plagger::Plugin ); 
    44use URI::Find; 
    5  
    6 { 
    7     package URI::ttp; 
    8     use base qw(URI::http); 
    9 } 
    105 
    116sub register { 
     
    2015    my($self, $context, $args) = @_; 
    2116    my $body = $args->{entry}->body; 
     17 
     18    local @URI::ttp::ISA = qw(URI::http); 
    2219 
    2320    my $finder = URI::Find->new(sub { 
     
    3633=head1 NAME 
    3734 
    38 Plagger::Plugin::Filter::TTP - auto link the ttp:// 
     35Plagger::Plugin::Filter::TTP - Replace ttp:// with http:// 
    3936 
    4037=head1 SYNOPSIS 
     
    4441=head1 DESCRIPTION 
    4542 
    46 ttp:// => http:// 
     43This plugin replaces C<ttp://> with C<http://>. C<ttp://> is a widely 
     44adopted way of linking an URL without leaking a referer. 
    4745 
    4846=head1 AUTHOR