summaryrefslogtreecommitdiff
path: root/app/Controller/AvatarFileController.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-01-29 13:14:33 -0800
committerFrédéric Guillot <fred@kanboard.net>2018-01-29 13:14:33 -0800
commit90984d6bb9b3bd508e0ca7f8c0ee07d304679fb5 (patch)
treecfd08f5c895ecca70b9da1367b7b2d689850a2db /app/Controller/AvatarFileController.php
parent357316cdf956b83df890b7bc14b772f49159c3df (diff)
Add missing CSRF check on avatar upload form
Diffstat (limited to 'app/Controller/AvatarFileController.php')
-rw-r--r--app/Controller/AvatarFileController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Controller/AvatarFileController.php b/app/Controller/AvatarFileController.php
index 327080d2..ed8a1028 100644
--- a/app/Controller/AvatarFileController.php
+++ b/app/Controller/AvatarFileController.php
@@ -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'))) {