mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进URL参数获取 保留变量名称大小写
This commit is contained in:
@@ -1212,7 +1212,7 @@ class Route
|
|||||||
$var += explode('/', $url);
|
$var += explode('/', $url);
|
||||||
} else {
|
} else {
|
||||||
preg_replace_callback('/(\w+)\/([^\/]+)/', function ($match) use (&$var) {
|
preg_replace_callback('/(\w+)\/([^\/]+)/', function ($match) use (&$var) {
|
||||||
$var[strtolower($match[1])] = strip_tags($match[2]);
|
$var[$match[1]] = strip_tags($match[2]);
|
||||||
}, $url);
|
}, $url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user