Skip to content

Commit

Permalink
[Routing] fixed Apache matcher dumper (broken by previous merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 23, 2011
1 parent d830253 commit e2945c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function dump(array $options = array())
$compiledRoute = $route->compile();

// prepare the apache regex
$regex = preg_replace('/\?P<.+?>/', '', substr(str_replace(array("\n", ' '), '', $compiledRoute->getRegex()), 1, -2));
$regex = preg_replace('/\?P<.+?>/', '', substr(str_replace(array("\n", ' '), '', $compiledRoute->getRegex()), 1, -3));
$regex = '^'.preg_quote($options['base_uri']).substr($regex, 1);

$hasTrailingSlash = '/$' == substr($regex, -2) && '^/$' != $regex;
Expand Down

0 comments on commit e2945c9

Please sign in to comment.