升级thinkphp到5.1.39
This commit is contained in:
1 parent
c8839fa4f8
commit
a58d04e7e2
37 files changed
+546
-192
No files matched your search
@@ -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-z0-9][\w|\.]*$/', $controller)) {
|
||||
throw new HttpException(404, 'controller not exists:' . $controller);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user