Skip to content

Commit 1d7cd44

Browse files
committed
minor #13149 Adjusts description of the csrf_token extension (jschaedl)
This PR was merged into the 4.4 branch. Discussion ---------- Adjusts description of the csrf_token extension I think using `...used to generate the token...` here leads to misunderstanding. The `intention` argument is not used to generate the csrf token. It is used to create a namespace string used to store and identify the token in the storage implementation. Commits ------- 44df761 Adjusts description of the csrf_token extension
2 parents 7216a75 + 44df761 commit 1d7cd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/twig_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ csrf_token
131131
{{ csrf_token(intention) }}
132132
133133
``intention``
134-
**type**: ``string`` - an arbitrary string used to generate the token value.
134+
**type**: ``string`` - an arbitrary string used to identify the token value.
135135

136136
Renders a CSRF token. Use this function if you want :doc:`CSRF protection </security/csrf>`
137137
in a regular HTML form not managed by the Symfony Form component.

0 commit comments

Comments
 (0)