projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix regression for "sub foo : Path {}" in the root controller which was introduced...
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
DispatchType
/
Path.pm
diff --git
a/lib/Catalyst/DispatchType/Path.pm
b/lib/Catalyst/DispatchType/Path.pm
index
d983d8a
..
16a2314
100644
(file)
--- a/
lib/Catalyst/DispatchType/Path.pm
+++ b/
lib/Catalyst/DispatchType/Path.pm
@@
-47,7
+47,7
@@
first action that matches, if any; if not, returns 0.
sub match {
my ( $self, $c, $path ) = @_;
- $path = '/' if !defined $path;
+ $path = '/' if !defined $path || !length $path;
foreach my $action ( @{ $self->{paths}->{$path} || [] } ) {
next unless $action->match($c);