Skip to content

Commit 69f5fd1

Browse files
Merge branch '4.2'
* 4.2: [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 Fix undefined variable in cache ArrayTrait fixed public directory of web server and assets install when configured in composer.json
2 parents 99c15a9 + 0f4f94a commit 69f5fd1

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)