修正判断

This commit is contained in:
thinkphp
2016-01-14 14:23:21 +08:00
parent 869c70e0e7
commit 459339b61b

View File

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