Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Update zend.form.quick-start.rst - preferFormInputFilter flag #1534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/src/modules/zend.form.quick-start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ additional user configuration!
Some form elements may need a particular input filter, like ``Zend\Form\Element\File``: in this case it's mandatory to specify
the ``type`` key in your custom specification to match the original one (in ex. for the file element it's ``Zend\InputFilter\FileInput``).

Remember that by default ``getInputFilterSpecification()`` is prefered over element and fieldset defaults. It may lead to serious security vulnerabilities like missing ``Zend\Validator\InArray`` validator for select elements. You can change this behavior by calling ``setPreferFormInputFilter(false)`` on corresponding form.

.. _zend.form.quick-start.binding:

Binding an object
Expand Down