diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-09-23 18:48:45 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-09-23 18:48:45 -0700 |
commit | 074f6c104f3e49401ef0065540338fc2d4be79f0 (patch) | |
tree | 35ee4b74f9f24749a57b6f54b6e5ec64eaffb1da /app/Controller/TaskCreationController.php | |
parent | 8ecaa60340966ee4fec8ee16612803d229e77eb3 (diff) |
Avoid people to alter other projects by changing form data
Diffstat (limited to 'app/Controller/TaskCreationController.php')
-rw-r--r-- | app/Controller/TaskCreationController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Controller/TaskCreationController.php b/app/Controller/TaskCreationController.php index 0d808c54..d050a60d 100644 --- a/app/Controller/TaskCreationController.php +++ b/app/Controller/TaskCreationController.php @@ -49,6 +49,7 @@ class TaskCreationController extends BaseController { $project = $this->getProject(); $values = $this->request->getValues(); + $values['project_id'] = $project['id']; list($valid, $errors) = $this->taskValidator->validateCreation($values); |