Changeset 2069

Show
Ignore:
Timestamp:
11/02/06 04:42:33
Author:
miyagawa
Message:

support http://mixxi.jp/id/{id}

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Mixxi/trunk/lib/Mixxi/Controller/Root.pm

    r2067 r2069  
    4545} 
    4646 
     47sub id : Global { 
     48    my($self, $c) = @_; 
     49    my $id = $c->req->args->[0]; 
     50    if ($id =~ /^\d+$/) { 
     51        $c->res->redirect("http://mixi.jp/show_friend.pl?id=" . $id); 
     52    } else { 
     53        $c->res->redirect($c->uri_for('/url')); 
     54    } 
     55} 
     56 
    4757sub default : Private { 
    4858    my($self, $c) = @_;