Add missing CSRF check on avatar upload form
This commit is contained in:
@@ -30,6 +30,7 @@ class AvatarFileController extends BaseController
|
||||
*/
|
||||
public function upload()
|
||||
{
|
||||
$this->checkCSRFParam();
|
||||
$user = $this->getUser();
|
||||
|
||||
if (! $this->avatarFileModel->uploadImageFile($user['id'], $this->request->getFileInfo('avatar'))) {
|
||||
|
||||
Reference in New Issue
Block a user