BootstrapCake icon indicating copy to clipboard operation
BootstrapCake copied to clipboard

Unexpected field 'apply' in POST data

Open pravynandas opened this issue 5 years ago • 1 comments

Following line custom field 'apply' causing security issue:

<?php echo $this->Form->submit(__('Apply'), array('name' => 'data[apply]', 'class' => 'btn btn-default', 'div' => false, 'style' => 'margin-left:10px;')); ?>

Needed to unlock the field right below the create() line:

<?php echo $this->Form->create('MyModel', array('role' => 'form')); ?>
<?php echo $this->Form->unlockField('apply'); ?>

pravynandas avatar May 14 '19 04:05 pravynandas

This package is no longer actively maintained, but feel free to submit a PR with a fix.

theseanstewart avatar May 14 '19 11:05 theseanstewart