Skip to content

Commit

Permalink
bug #5061 Trim default is false in password field (raziel057)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 2.3 branch (closes #5061).

Discussion
----------

Trim default is false in password field

The Password field define the inherited trim option to false.

Commits
-------

81fdea1 Trim default is false in password field
  • Loading branch information
wouterj committed Apr 2, 2015
2 parents b19ded6 + 81fdea1 commit c6e6d28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reference/forms/types/options/trim.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ trim
**type**: ``Boolean`` **default**: ``true``

If true, the whitespace of the submitted string value will be stripped
via the ``trim()`` function when the data is bound. This guarantees that
via the :phpfunction:`trim` function when the data is bound. This guarantees that
if a value is submitted with extra whitespace, it will be removed before
the value is merged back onto the underlying object.
10 changes: 9 additions & 1 deletion reference/forms/types/password.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,12 @@ The default value is ``''`` (the empty string).

.. include:: /reference/forms/types/options/required.rst.inc

.. include:: /reference/forms/types/options/trim.rst.inc
trim
~~~~

**type**: ``Boolean`` **default**: ``false``

If true, the whitespace of the submitted string value will be stripped
via the :phpfunction:`trim` function when the data is bound. This guarantees that
if a value is submitted with extra whitespace, it will be removed before
the value is merged back onto the underlying object.

0 comments on commit c6e6d28

Please sign in to comment.