8000 merged branch goohib/fix-form-component-typo (PR #5323) · meistro2k/symfony@2df222b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2df222b

Browse files
committed
merged branch goohib/fix-form-component-typo (PR symfony#5323)
Commits ------- bca68ca Fixed a typo Discussion ---------- Fixed a typo The CSRF error message won't be translated due to this typo even if the translator is enabled.
2 parents 1121ef0 + bca68ca commit 2df222b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function preBind(FormEvent $event)
6565

6666
if ($form->isRoot() && $form->getConfig()->getOption('compound')) {
6767
if (!isset($data[$this->fieldName]) || !$this->csrfProvider->isCsrfTokenValid($this->intention, $data[$this->fieldName])) {
68-
$form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form'));
68+
$form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form.'));
6969
}
7070

7171
unset($data[$this->fieldName]);

0 commit comments

Comments
 (0)
0