Changeset 1792

Show
Ignore:
Timestamp:
03/03/06 15:02:56
Author:
miyagawa
Message:

Fixed utf-8 parameters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Kwiki-TypeKey/trunk/Changes

    r1717 r1792  
    11Revision history for Perl extension Kwiki::TypeKey 
     2 
     30.07  2006-03-03T06:01:46Z 
     4        * Fixed UTF-8 CGI parameters bug. 
     5          (Thansk to Yappo) 
    26 
    370.06  Mon Jan  9 21:06:46 UTC 2006 
  • Kwiki-TypeKey/trunk/lib/Kwiki/TypeKey.pm

    r1717 r1792  
    55use mixin 'Kwiki::Installer'; 
    66 
    7 our $VERSION = 0.06
     7our $VERSION = 0.07
    88 
    99const class_id => 'user_name'; 
  • Kwiki-TypeKey/trunk/lib/Kwiki/Users/TypeKey.pm

    r1717 r1792  
    4949sub validate_sig { 
    5050    my $data = shift; 
     51 
     52    # Kwiki::CGI adds utf-8 flags to all the values 
     53    for my $key (keys %$data) { 
     54        utf8::encode($data->{$key}) if defined $data->{$key}; 
     55    } 
     56 
    5157    require CGI; 
    5258    my $q = CGI->new({ %$data });