OSDN Git Service
(root)
/
php-libraries
/
Router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcbfbd6
)
Fix broken pattern #101
author
Antoine Pous
<gecko@dvp.io>
Thu, 9 Mar 2017 21:16:41 +0000
(22:16 +0100)
committer
Antoine Pous
<gecko@dvp.io>
Thu, 9 Mar 2017 21:16:41 +0000
(22:16 +0100)
src/Router.php
patch
|
blob
|
history
diff --git
a/src/Router.php
b/src/Router.php
index
56cba67
..
15bb28c
100755
(executable)
--- a/
src/Router.php
+++ b/
src/Router.php
@@
-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;
}