Changeset 1958

Show
Ignore:
Timestamp:
09/24/07 18:11:11
Author:
otsune
Message:

fix CustomFeed?::Mixi (via http://subtech.g.hatena.ne.jp/otsune/20070803/CustomFeedMixiDiff )

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/Mixi.pm

    r1827 r1958  
    9797    my $next_url = URI->new($start_url)->path; 
    9898 
    99     if ($response->content =~ /action="login\.pl"/) { 
     99    if ($response->content =~ /action="\/login\.pl"/) { 
    100100        $context->log(debug => "Cookie not found. Logging in"); 
    101101 
     
    110110            sticky   => 'on', 
    111111        }); 
    112         if (!$response->is_success || $response->content =~ /action=login\.pl/) { 
     112        if (!$response->is_success || $response->content =~ /action=\/login\.pl/) { 
    113113            $context->log(error => "Login failed."); 
    114114            return;