From 793ee625e8b5436bd38684796a6e25fd4c9aff9b Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Fri, 6 Mar 2015 11:20:58 +0100 Subject: [PATCH 1/5] Trim default is false in password field The Password field define the inherited trim option to false. --- reference/forms/types/password.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index eefe8eb7c31..416249a0162 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -76,4 +76,10 @@ 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 ``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. From 8a691c41b6b0238a1b6afce34bf11ee7e7741366 Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Mon, 9 Mar 2015 18:38:08 +0100 Subject: [PATCH 2/5] Update password.rst --- reference/forms/types/password.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index 416249a0162..e3e7e9a25a8 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -78,7 +78,9 @@ The default value is ``''`` (the empty string). trim ~~~~ -**type**: ``Boolean`` **default**: ``false`` + +**type**: ``bool`` **default**: ``false`` + If true, the whitespace of the submitted string value will be stripped via the ``trim()`` function when the data is bound. This guarantees that if a value is submitted with extra whitespace, it will be removed before From d936e4bed97ec5ebf67e571ade78b60ede554155 Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Tue, 10 Mar 2015 07:52:07 +0100 Subject: [PATCH 3/5] Update password.rst --- reference/forms/types/password.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index e3e7e9a25a8..8330ec99b37 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -79,7 +79,7 @@ The default value is ``''`` (the empty string). trim ~~~~ -**type**: ``bool`` **default**: ``false`` +**type**: ``Boolean`` **default**: ``false`` If true, the whitespace of the submitted string value will be stripped via the ``trim()`` function when the data is bound. This guarantees that From 94f85d25592676ffcb1a7c20acaec18b4405a13c Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Wed, 25 Mar 2015 11:43:48 +0100 Subject: [PATCH 4/5] add link to trim php page --- reference/forms/types/password.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index 8330ec99b37..7341d4eea8d 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -82,6 +82,6 @@ trim **type**: ``Boolean`` **default**: ``false`` 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. From 30316634dbeb50aa1c03d75162d0302127545ce5 Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Wed, 25 Mar 2015 11:46:13 +0100 Subject: [PATCH 5/5] Replicate change in default trim option --- reference/forms/types/options/trim.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/options/trim.rst.inc b/reference/forms/types/options/trim.rst.inc index 68ba656be94..5303e7ff26e 100644 --- a/reference/forms/types/options/trim.rst.inc +++ b/reference/forms/types/options/trim.rst.inc @@ -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.