From: Evan Prodromou Date: Thu, 15 Sep 2011 13:54:25 +0000 (-0400) Subject: exact match for paths X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c03a509474235d7f81d9d9e14a683f045882ce2;p=quix0rs-gnu-social.git exact match for paths --- 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; }