Changeset 821

Show
Ignore:
Timestamp:
05/25/06 00:29:04
Author:
miyagawa
Message:

clone conf so that it doesn't break the data. Add w3m support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Cookies.pm

    r817 r821  
    33 
    44use UNIVERSAL::require; 
     5use Storable; 
    56 
    67our %Instances; 
     
    1516 
    1617    $Instances{$conf->{file}} ||= do { 
     18        $conf = Storable::dclone($conf); 
    1719        my $type = delete $conf->{type}; 
    1820        my $impl = $type ? "HTTP::Cookies::$type" : "HTTP::Cookies"; 
     
    3739    elsif ($filename =~ /Cookies\.plist$/i) { 
    3840        return { type => 'Safari', file => $filename }; 
     41    } 
     42    elsif ($filename =~ m!\.w3m/cookie$!) { 
     43        return { type => 'w3m', file => $filename }; 
    3944    } 
    4045