local $c->req->{arguments} = [ @{$c->req->args}, @parts ];
next TRY_ACTION unless $action->match($c);
}
+
+ # Default args is blank, not 0, since Args()
my $args_attr = $action->attributes->{Args}->[0];
+ $args_attr = '' unless defined $args_attr;
# No best action currently
# OR This one matches with fewer parts left than the current best action,
if (my $cap = $curr->attributes->{CaptureArgs}) {
return undef unless @captures >= $cap->[0]; # not enough captures
if ($cap->[0]) {
- unshift(@parts,
- map { s/([^A-Za-z0-9\-_.!~*'()])/$URI::Escape::escapes{$1}/go; $_; }
- splice(@captures, -$cap->[0]));
+ unshift(@parts, splice(@captures, -$cap->[0]));
}
}
if (my $pp = $curr->attributes->{PartPath}) {