exact match for paths

This commit is contained in:
Evan Prodromou 2011-09-15 09:54:25 -04:00
parent 7c57aab44e
commit 7c03a50947

View File

@ -212,7 +212,7 @@ class URLMapper
array($pr, 'toPattern'),
$path);
$regex = '#' . str_replace('#', '\#', $regex) . '#';
$regex = '#^' . str_replace('#', '\#', $regex) . '$#';
return $regex;
}