X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FRegex.pm;h=354fe3303d103253e7b4e121cbd00e2fde5dfce3;hb=0eb98177aa8e4ff96f8e3165585b083ae7ae16ee;hp=1c0c59e56cea9125548f95a8fd5a5577ac7f344a;hpb=873b98ee118b378ace23ffdba0b440bcefdfc8c1;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/DispatchType/Regex.pm b/lib/Catalyst/DispatchType/Regex.pm index 1c0c59e..354fe33 100644 --- a/lib/Catalyst/DispatchType/Regex.pm +++ b/lib/Catalyst/DispatchType/Regex.pm @@ -148,7 +148,7 @@ sub uri_for_action { $re =~ s/^\^//; $re =~ s/\$$//; my $final = '/'; - my @captures = @$captures; + my @captures = map { s/([^A-Za-z0-9\-_.!~*'()])/$URI::Escape::escapes{$1}/go; $_; } @$captures; while (my ($front, $rest) = split(/\(/, $re, 2)) { last unless defined $rest; ($rest, $re) =