thinkphp5.0.X远程漏洞解决
2018-12-12 本文已影响12人
这真的是一个帅气的名字
位置:thinkphp>library>think>app.php
// 远程漏洞控制
if (!preg_match('/^[A-Za-z](\w)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
