projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5400c66
)
- Made :Path behave sanely at the root, hopefully
Matt S Trout [Sat, 12 Nov 2005 20:47:11 +0000 (20:47 +0000)]
lib/Catalyst/DispatchType/Path.pm
patch
|
blob
|
blame
|
history
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";