mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
去除控制器名的检测
This commit is contained in:
@@ -282,12 +282,6 @@ class App
|
|||||||
$actionName = strip_tags($result[2] ?: $config['default_action']);
|
$actionName = strip_tags($result[2] ?: $config['default_action']);
|
||||||
$actionName = $convert ? strtolower($actionName) : $actionName;
|
$actionName = $convert ? strtolower($actionName) : $actionName;
|
||||||
|
|
||||||
// 执行操作
|
|
||||||
if (!preg_match('/^[A-Za-z](\/|\.|\w)*$/', $controller)) {
|
|
||||||
// 安全检测
|
|
||||||
throw new \InvalidArgumentException('illegal controller name:' . $controller);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 设置当前请求的控制器、操作
|
// 设置当前请求的控制器、操作
|
||||||
$request->controller($controller)->action($actionName);
|
$request->controller($controller)->action($actionName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user