Skip to content

Commit

Permalink
ID string is equal and over 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaro committed Mar 12, 2013
1 parent ec49cfa commit 06615fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PrePAN/Web.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ __PACKAGE__->add_trigger(
$c->user && $c->app->user($c->user);
$c->app->page($c->req->param('page'));

if ($c->req->path =~ m{^/user/([[:alnum:]]{10})}o) {
if ($c->req->path =~ m{^/user/([[:alnum:]]{10,})}o) {
$c->data(author_id => $1);
$c->author && $c->app->author($c->author);
}

if ($c->req->path =~ m{^/module/([[:alnum:]]{10})}o) {
if ($c->req->path =~ m{^/module/([[:alnum:]]{10,})}o) {
$c->data(module_id => $1);
}

Expand Down

0 comments on commit 06615fc

Please sign in to comment.