OSDN Git Service

Fix broken pattern #101
authorAntoine Pous <gecko@dvp.io>
Thu, 9 Mar 2017 21:16:41 +0000 (22:16 +0100)
committerAntoine Pous <gecko@dvp.io>
Thu, 9 Mar 2017 21:16:41 +0000 (22:16 +0100)
src/Router.php

index 56cba67..15bb28c 100755 (executable)
@@ -114,7 +114,7 @@ class Router
             }
 
             $route = rtrim($routes->getRegex(), '/');
-            $pattern = '@^' . preg_quote($this->basePath) . preg_quote($route). '/?$@i';
+            $pattern = '@^' . preg_quote($this->basePath) . $route . '/?$@i';
             if (!preg_match($pattern, $requestUrl, $matches)) {
                 continue;
             }