whitespace cleanup
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Dispatcher.pm
index d3f25a3..9ac3581 100644 (file)
@@ -13,7 +13,6 @@ use Catalyst::DispatchType::Index;
 use Catalyst::Utils;
 use Text::SimpleTable;
 use Tree::Simple;
-use Tree::Simple::Visitor::FindByPath;
 use Class::Load qw(load_class try_load_class);
 use Encode 2.21 'decode_utf8';
 
@@ -439,7 +438,7 @@ C<$path> is '/foo/../bar' that is normalized to '/bar'.
 
 sub get_action_by_path {
     my ( $self, $path ) = @_;
-    $path =~s/[^\/]+\/\.\.\/// while $path=~m/\.\./;
+    $path =~s/[^\/]+\/\.\.\/// while $path=~m/[^\/]+\/\.\.\//;
     $path =~ s/^\///;
     $path = "/$path" unless $path =~ /\//;
     $self->_action_hash->{$path};