]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
exact match for paths
authorEvan Prodromou <evan@status.net>
Thu, 15 Sep 2011 13:54:25 +0000 (09:54 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 15 Sep 2011 13:54:25 +0000 (09:54 -0400)
lib/urlmapper.php

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