You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 6.4: (23 commits)
fix merge
add missing return type-hints
fix merge
explicitly mark nullable parameters as nullable
fix low deps tests
[HttpKernel] Fix datacollector caster for reference object property
[Serializer] Fixing PHP warning in the ObjectNormalizer with MaxDepth enabled
bug #51578 [Cache] always select database for persistent redis connections
[Security] Validate that CSRF token in form login is string similar to username/password
[Serializer] Use explicit nullable type
[validator] validated Dutch translation
Improve dutch translations
[Translation] Skip state=needs-translation entries only when source == target
[HttpKernel] Ensure controllers are not lazy
[Validator] Fill in trans-unit id 113: This URL does not contain a TLD.
[Validator] added missing Polish translation for unit 113
[Validator] add missing lv translation
[HttpClient] Let curl handle transfer encoding
[Messenger] Make Doctrine connection ignore unrelated tables on setup
[HttpFoundation] Set content-type header in RedirectResponse
...
Copy file name to clipboardExpand all lines: Authenticator/FormLoginAuthenticator.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,10 @@ private function getCredentials(Request $request): array
135
135
thrownewBadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['password_parameter'], \gettype($credentials['password'])));
136
136
}
137
137
138
+
if (!\is_string($credentials['csrf_token'] ?? '') && (!\is_object($credentials['csrf_token']) || !method_exists($credentials['csrf_token'], '__toString'))) {
139
+
thrownewBadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['csrf_parameter'], \gettype($credentials['csrf_token'])));
0 commit comments