[Bps-public-commit] r16451 - in Path-Dispatcher/trunk: lib/Path/Dispatcher/Rule

sartak at bestpractical.com sartak at bestpractical.com
Tue Oct 21 15:26:56 EDT 2008


Author: sartak
Date: Tue Oct 21 15:26:55 2008
New Revision: 16451

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm

Log:
 r74318 at onn:  sartak | 2008-10-21 15:26:51 -0400
 Don't settle for matching a prefix if the tokens rule does not want to be prefix matched


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm	Tue Oct 21 15:26:55 2008
@@ -55,6 +55,8 @@
         push @matched, $got;
     }
 
+    return if @tokens && !$self->prefix;
+
     my $leftover = $self->untokenize(@tokens);
     return \@matched, $leftover;
 }



More information about the Bps-public-commit mailing list