tp漏洞同步修复

feat/task1-c-wallet
devil 2020-03-31 13:09:22 +08:00
parent 41eef2e7dd
commit 87e7d63c70
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Url extends Dispatch
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
if ($controller && !preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}