Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7d7538

Browse files
committed
bug symfony#5356 [Form] Fixed typo about _token field name for CSRF protection (JMLamodiere)
This PR was merged into the 2.3 branch. Discussion ---------- [Form] Fixed typo about _token field name for CSRF protection As seen [here](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php#L53) | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | none Commits ------- c4bc7e7 Fixed typo about _token field name for CSRF protection
2 parents 5f2c583 + c4bc7e7 commit f7d7538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ above snippet and make sure that nobody except your web server can access
138138
the secret.
139139

140140
Internally, this extension will automatically add a hidden field to every
141-
form (called ``__token`` by default) whose value is automatically generated
141+
form (called ``_token`` by default) whose value is automatically generated
142142
and validated when binding the form.
143143

144144
.. tip::

0 commit comments

Comments
 (0)