Changeset 3394

Show
Ignore:
Timestamp:
08/29/2008 12:11:38 PM (3 months ago)
Author:
Shadowhand
Message:

Follow up to r3366, fixed a bug that would prevent Router::compile() from adding slashes to non-key segments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/classes/router.php

    r3393 r3394  
    7070                        $regex = Router::compile($route); 
    7171 
     72                        echo Kohana::debug($name, $regex); 
     73 
    7274                        if (preg_match('#^'.$regex.'$#u', self::$current_uri, $matches)) 
    7375                        { 
     
    106108                                } 
    107109 
     110                                echo Kohana::debug($route, $regex);exit; 
     111 
    108112                                // Set controller name 
    109113                                self::$controller = $route['controller']; 
     
    333337                                { 
    334338                                        // Add slash from previous segment 
    335                                         $uri[$i] .= '/'; 
     339                                        $uri[$i - 1] .= '/'; 
    336340                                } 
    337341                        }