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
* 7.0: (39 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
initialize the current time with midnight before modifying the date
[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
fix tests
[HttpClient] Let curl handle transfer encoding
...
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
@@ -143,6 +143,10 @@ private function getCredentials(Request $request): array
143
143
thrownewBadRequestHttpException(sprintf('The key "%s" must be a non-empty string.', $this->options['password_parameter']));
144
144
}
145
145
146
+
if (!\is_string($credentials['csrf_token'] ?? '') && (!\is_object($credentials['csrf_token']) || !method_exists($credentials['csrf_token'], '__toString'))) {
147
+
thrownewBadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['csrf_parameter'], \gettype($credentials['csrf_token'])));
0 commit comments