Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c6e6d28

Browse filesBrowse files
committed
bug #5061 Trim default is false in password field (raziel057)
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
2 parents b19ded6 + 81fdea1 commit c6e6d28
Copy full SHA for c6e6d28

File tree

Expand file treeCollapse file tree

2 files changed

+10
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-2
lines changed

‎reference/forms/types/options/trim.rst.inc

Copy file name to clipboardExpand all lines: reference/forms/types/options/trim.rst.inc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ trim
44
**type**: ``Boolean`` **default**: ``true``
55

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

‎reference/forms/types/password.rst

Copy file name to clipboardExpand all lines: reference/forms/types/password.rst
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,12 @@ The default value is ``''`` (the empty string).
7676

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

79-
.. include:: /reference/forms/types/options/trim.rst.inc
79+
trim
80+
~~~~
81+
82+
**type**: ``Boolean`` **default**: ``false``
83+
84+
If true, the whitespace of the submitted string value will be stripped
85+
via the :phpfunction:`trim` function when the data is bound. This guarantees that
86+
if a value is submitted with extra whitespace, it will be removed before
87+
the value is merged back onto the underlying object.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.