位置:thinkphp>library>think>app.php
// 远程漏洞控制
if (!preg_match('/^[A-Za-z](\w)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
![4424012-5f6a08e132caf484.png](https://i-blog.csdnimg.cn/blog_migrate/ce387e9b374011fcf9ee980bd6bcfc8b.webp?x-image-process=image/format,png)
图示
// 远程漏洞控制
if (!preg_match('/^[A-Za-z](\w)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}