Changeset 1689

Show
Ignore:
Timestamp:
09/15/06 16:36:07
Author:
miyagawa
Message:

Filter::TruePermalink?: don't die if it detects infinite loop on HTTP redirects.

Files:

Legend:

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

    r1595 r1689  
    5656    my $loop; 
    5757    while ($self->rewrite_link($getter, $callback, $args)) { 
    58         if ($loop++ >= 100) { 
    59             Plagger->error("Possible infinite loop on " . $getter->()); 
     58        if ($loop++ >= 10) { 
     59            $self->log(error => "Possible infinite loop on " . $getter->()); 
     60            return; 
    6061        } 
    6162    } 
  • trunk/plagger/t/plugins/Filter-TruePermalink/redirect.t

    r1583 r1689  
    1919        - title: baz 
    2020          link: http://xrl.us/q54v 
     21        - title: x 
     22          link: http://tech.groups.yahoo.com/group/ydn-delicious/message/436 
    2123  - module: Filter::TruePermalink 
    2224--- expected