Changeset 4739

Show
Ignore:
Timestamp:
01/17/08 02:32:02 (5 years ago)
Author:
tokuhirom
Message:

lang/perl/mobirc: support nanoformats

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/mobirc/trunk/mobirc/lib/Mobirc/Plugin/GPS.pm

    r4725 r4739  
    3535            if ($uri =~ m{^/channel/([^/]+)/gps\?time=}) { 
    3636                my $channel_name = $1; 
    37                 my $page2 = $2; 
    3837 
    3938                my $path = File::Spec->catfile($c->{config}->{global}->{assets_dir}, 'plugin', 'GPS', 'measure.tt2'); 
     
    7978 
    8079                my $res = HTTP::Response->new(302); 
    81                 my $abs_uri = 'http://' . $c->{req}->header('Host') . $c->{config}->{httpd}->{root} . "channels/$channel_name?msg=" . uri_escape(encode('utf8', $msg)); 
    82                 warn "REDIRECT TO $abs_uri"; 
     80                my $abs_uri = 'http://' . $c->{req}->header('Host') . $c->{config}->{httpd}->{root} . "channels/$channel_name?msg=" . uri_escape(encode('utf8', "L:$msg")); 
    8381                $res->header('Location' => $abs_uri); 
    8482                $res;