projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
- Made :Path behave sanely at the root, hopefully
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
DispatchType
/
Path.pm
diff --git
a/lib/Catalyst/DispatchType/Path.pm
b/lib/Catalyst/DispatchType/Path.pm
index
ccff553
..
2cb950d
100644
(file)
--- a/
lib/Catalyst/DispatchType/Path.pm
+++ b/
lib/Catalyst/DispatchType/Path.pm
@@
-64,6
+64,7
@@
sub register {
foreach my $r ( @{ $attrs->{Path} || [] } ) {
unless ($r) {
$r = $action->namespace;
+ $r = '' if $r eq '/';
}
elsif ( $r !~ m!^/! ) { # It's a relative path
$r = $action->namespace . "/$r";