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; }