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