修正一处错误

This commit is contained in:
thinkphp
2016-07-26 15:34:40 +08:00
parent f765139ea5
commit 60a4596824

View File

@@ -1207,7 +1207,7 @@ class Route
// 替换路由地址中的变量
if (is_string($route) && !empty($matches)) {
foreach ($matches as $key => $val) {
if (false !== strpos($url, ':' . $key)) {
if (false !== strpos($route, ':' . $key)) {
$route = str_replace(':' . $key, $val, $route);
unset($matches[$key]);
}