!37 存在安全隐患

Merge pull request !37 from coffee/v6

在可以登录的前提并了解系统的提前下,确认可以修改权限,感谢反馈。
This commit is contained in:
Anyon 2022-09-07 09:10:47 +00:00 committed by Gitee
commit 1cbc5c1f6d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -77,7 +77,20 @@ class Index extends Controller
}
}
}
/**
* 表单数据处理
* @param array $data
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
protected function _form_filter(array &$data)
{
if ($this->request->isPost()) {
unset($data['username']);
unset($data['authorize']);
}
}
/**
* 修改用户资料
* @login true