Skip to content

Commit 0f4f94a

Browse files
Merge branch '4.1' into 4.2
* 4.1: [Routing] fix trailing slash redirections involving a trailing var [EventDispatcher] Revers event tracing order [Security] Prefer clone over unserialize(serialize()) for user refreshment [Console] OutputFormatter: move strtolower to createStyleFromString Adjust tests to work in the armhf architecture. Fixes #29281. Vietnamese translations improvement [Form] Fixed FormErrorIterator class phpdoc Renamed test controller from Controller to TestController so it doesn't show up in the IDE autocomplete. Don't use he in docs when its not needed EventSubscriberInterface isn't a man fixed public directory of web server and assets install when configured in composer.json
2 parents ed95be7 + 9980771 commit 0f4f94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function refreshUser(TokenInterface $token)
170170

171171
try {
172172
$refreshedUser = $provider->refreshUser($user);
173-
$newToken = unserialize(serialize($token));
173+
$newToken = clone $token;
174174
$newToken->setUser($refreshedUser);
175175

176176
// tokens can be deauthenticated if the user has been changed.

0 commit comments

Comments
 (0)