Add CSRF check for task and project files upload
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
</div>
|
||||
|
||||
<?= $this->app->component('file-upload', array(
|
||||
'csrf' => $this->app->getToken()->getReusableCSRFToken(),
|
||||
'maxSize' => $max_size,
|
||||
'url' => $this->url->to('TaskFileController', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])),
|
||||
'labelDropzone' => t('Drag and drop your files here'),
|
||||
|
||||
Reference in New Issue
Block a user