Show
Ignore:
Timestamp:
02/23/2008 01:00:29 AM (11 months ago)
Author:
Geert
Message:

Removed :any and :num support in routes.
See: http://forumarchive.kohanaphp.com/index.php/topic,682.0.html

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Router.php

    r1977 r2153  
    7575                                        if ($key == '_default') continue; 
    7676 
    77                                         // Replace helper strings 
    78                                         $key = str_replace 
    79                                         ( 
    80                                                 array(':any', ':num'), 
    81                                                 array('.+',   '[0-9]+'), 
    82                                                 $key 
    83                                         ); 
    84  
    8577                                        // Does this route match the current URI? 
    8678                                        if (preg_match('#^'.$key.'$#u', self::$segments))