Add missing CSRF check on avatar upload form
This commit is contained in:
@@ -13,8 +13,7 @@
|
||||
<hr>
|
||||
|
||||
<h3><?= t('Upload my avatar image') ?></h3>
|
||||
<form method="post" enctype="multipart/form-data" action="<?= $this->url->href('AvatarFileController', 'upload', array('user_id' => $user['id'])) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
<form method="post" enctype="multipart/form-data" action="<?= $this->url->href('AvatarFileController', 'upload', array('user_id' => $user['id']), true) ?>">
|
||||
<?= $this->form->file('avatar') ?>
|
||||
|
||||
<div class="form-actions">
|
||||
|
||||
Reference in New Issue
Block a user