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
Typo in SimpleFormAuthenticationListener #30341
Comments
Thanks, the fix should be submitted on branch 3.4, with a test case if possible. |
Same for symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php Line 88 in 848a830
|
I'd like to take it if possible. Should be able to do it over the weekend. |
@cardillomarcelo I am sorry but someone already opened a pull request (see #30347). |
np 👍 |
This PR was squashed before being merged into the 3.4 branch (closes #30347). Discussion ---------- [Security] Change FormAuthenticator if condition | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30341 | License | MIT | Doc PR | - I changed the if condition in `SimpleFormAuthenticationListener` and `UsernamePasswordFormAuthenticationListener` based on the solution provided by @nikic in issue #30341 #OpenSourceFriday Commits ------- 67ae121 [Security] Change FormAuthenticator if condition
The check https://github.com/symfony/security/blob/baa22f665a7ea04c2bfb4d6236a2020a25979f10/Http/Firewall/SimpleFormAuthenticationListener.php#L100 should be one of
As currently written, the second condition will always be false.
Noticed this while looking into an opcache optimization bug caused by this piece of code :)
The text was updated successfully, but these errors were encountered: