手動(dòng)修復(fù)
在think\App類的module方法的獲取控制器的代碼后面加上
if(!preg_match('/^[A-Za-z](\w|\.)*$/',$controller)){thrownewHttpException(404,'controller not exists:'.$controller);}
在think\route\dispatch\Url類的parseUrl方法,解析控制器后加上
if($controller&&!preg_match('/^[A-Za-z](\w|\.)*$/',$controller)){thrownewHttpException(404,'controller not exists:'.$controller);}
詳情:https://blog.thinkphp.cn/869075