Browse files

when calling pass() one must also return from the current route

  • Loading branch information...
1 parent 31c7293 commit cb59bbaad14c0c1cefc7a7b1e35652a6758bb259 @szabgab committed Jan 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/PEG.pm
View
2 lib/PEG.pm
@@ -116,7 +116,7 @@ get qr{^ / (\w+) $ }x => sub {
my ($page) = splat;
# we have the page or we pass up on it
- grep { $page eq $_ } @pages or pass;
+ grep { $page eq $_ } @pages or return pass;
# render it
template $page => $content{$page};

0 comments on commit cb59bba

Please sign in to comment.