Do not expose IDs in forms
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<h2><?= t('Edit external link') ?></h2>
|
||||
</div>
|
||||
|
||||
<form action="<?= $this->url->href('TaskExternalLinkController', 'update', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" method="post" autocomplete="off">
|
||||
<form action="<?= $this->url->href('TaskExternalLinkController', 'update', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'link_id' => $link['id'])) ?>" method="post" autocomplete="off">
|
||||
<?= $this->render('task_external_link/form', array('task' => $task, 'dependencies' => $dependencies, 'values' => $values, 'errors' => $errors)) ?>
|
||||
<?= $this->modal->submitButtons() ?>
|
||||
</form>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
<form action="<?= $this->url->href('TaskExternalLinkController', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" method="post" autocomplete="off">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('task_id', array('task_id' => $task['id'])) ?>
|
||||
|
||||
<?= $this->form->label(t('External link'), 'text') ?>
|
||||
<?= $this->form->text(
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('task_id', array('task_id' => $task['id'])) ?>
|
||||
<?= $this->form->hidden('id', $values) ?>
|
||||
<?= $this->form->hidden('link_type', $values) ?>
|
||||
|
||||
<?= $this->form->label(t('URL'), 'url') ?>
|
||||
|
||||
Reference in New Issue
Block a user