-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] CsrfValidationListener marks the token as invalid if it is not a string #29884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3.4 is affected by this too, isn't it? |
src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php
Outdated
Show resolved
Hide resolved
Yes, the fix probably need to be applied there too. |
src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php
Outdated
Show resolved
Hide resolved
@umpirsky Can you rebase on the |
It will be easier to create a new PR. :) |
@umpirsky if you'd like to, I can have a look at this PR and rebase it |
I will look into it soon... |
9feae63
to
ad6f0dc
Compare
I reset to 3.4 and cherry-picked changes. Thanks for the patience! |
Status? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase + change the PR title to make the changelog usefull.
Good to me otherwise!
src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php
Outdated
Show resolved
Hide resolved
a905812
to
86aab3f
Compare
Updated. |
86aab3f
to
deb8e95
Compare
Thank you @umpirsky. |
…f it is not a string (umpirsky) This PR was squashed before being merged into the 3.4 branch (closes #29884). Discussion ---------- [Form] CsrfValidationListener marks the token as invalid if it is not a string | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #29882 | License | MIT Commits ------- deb8e95 [Form] CsrfValidationListener marks the token as invalid if it is not a string
Hello, my tests involving CSRF tokens are broken since 4.2.4. I guess it comes from this PR. Reverting to 4.2.3 fix the issue.
It comes from:
|
What does |
|
@umpirsky What was the bug at first? |
Same for me, but instead I use |
Will there be |
No, 4.1 doesn't receive bugfixes (except for security issues) anymore (see https://symfony.com/roadmap/4.1). |
Uh oh!
There was an error while loading. Please reload this page.