projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Chained: test and err handling for absolute path parts; test for recursive chains
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
DispatchType
/
Chained.pm
diff --git
a/lib/Catalyst/DispatchType/Chained.pm
b/lib/Catalyst/DispatchType/Chained.pm
index
b236aa4
..
1d7783b
100644
(file)
--- a/
lib/Catalyst/DispatchType/Chained.pm
+++ b/
lib/Catalyst/DispatchType/Chained.pm
@@
-202,6
+202,12
@@
sub register {
);
}
+ if ($part =~ m(^/)) {
+ Catalyst::Exception->throw(
+ "Absolute parameters to PathPart not allowed registering ${action}"
+ );
+ }
+
$action->attributes->{PartPath} = [ $part ];
unshift(@{ $children->{$part} ||= [] }, $action);