版本更新

This commit is contained in:
thinkphp
2018-12-09 20:40:40 +08:00
parent 0347d7c2c3
commit 4cbc0b5e93
2 changed files with 2 additions and 2 deletions

View File

@@ -552,7 +552,7 @@ class App
// 获取控制器名
$controller = strip_tags($result[1] ?: $config['default_controller']);
if (!preg_match('/^[A-Za-z](\w)*$/', $controller)) {
if (!preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}