Changeset 2108

Show
Ignore:
Timestamp:
11/30/06 07:37:28
Author:
miyagawa
Message:

decode utf8 from cookie

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Kwiki-TypeKey/trunk/lib/Kwiki/Users/TypeKey.pm

    r1792 r2108  
    2828package Kwiki::User::TypeKey; 
    2929use base qw(Kwiki::User); 
     30use Encode; 
    3031 
    3132field 'email'; 
     
    4344    $self->validate_sig($cookie) or return; 
    4445    for my $key (qw(email name nick ts icon)) { 
    45         $self->$key($cookie->{$key}); 
     46        $self->$key( decode_utf8($cookie->{$key}) ); # we need to decode it back to Unicode 
    4647    } 
    4748}