From 7c03a509474235d7f81d9d9e14a683f045882ce2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 15 Sep 2011 09:54:25 -0400 Subject: [PATCH] exact match for paths --- lib/urlmapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/urlmapper.php b/lib/urlmapper.php index 35798cf282..fcaa66a553 100644 --- a/lib/urlmapper.php +++ b/lib/urlmapper.php @@ -212,7 +212,7 @@ class URLMapper array($pr, 'toPattern'), $path); - $regex = '#' . str_replace('#', '\#', $regex) . '#'; + $regex = '#^' . str_replace('#', '\#', $regex) . '$#'; return $regex; } -- 2.39.5