Yaffs site version 1.1
[yaffs-website] / vendor / symfony-cmf / routing / Candidates / Candidates.php
index 21bef551428ca12d77fe5c41172125a82293ce98..b0a3ab4cafa82a9d6b7d0f46c6ebc9909bb3f672 100644 (file)
@@ -108,7 +108,7 @@ class Candidates implements CandidatesInterface
         }
 
         $matches = array();
-        if (preg_match('#('.implode('|', $this->locales).')(/|$)#', $url, $matches)) {
+        if (preg_match('#^/('.implode('|', $this->locales).')(/|$)#', $url, $matches)) {
             return $matches[1];
         }