修复变量重名导致的URL反解析错误

This commit is contained in:
水平凡
2016-07-06 09:31:23 +08:00
committed by GitHub
parent 433df8c6ff
commit 03ab776e38

View File

@@ -269,8 +269,8 @@ class Url
foreach ($rules as $group => $val) {
list($rule, $route, $vars, $option, $pattern) = $val;
if (is_array($rule)) {
foreach ($rule as $key => $item) {
list($key, $route, $var, $option, $pattern) = $item;
foreach ($rule as $key => $ruleItem) {
list($key, $route, $var, $option, $pattern) = $ruleItem;
$param = [];
if (is_array($route)) {