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
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/Firewall/ContextListener.php
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -77,11 +77,11 @@ public function handle(GetResponseEvent $event)
77
77
return;
78
78
}
79
79
80
-
$token = @unserialize($serializedToken);
81
-
82
-
if (false === $token) {
80
+
try {
81
+
$token = $this->unserialize($serializedToken);
82
+
} catch (\ErrorException$e) {
83
83
if (null !== $this->logger) {
84
-
$this->logger->warning('Failed to unserialize the security token from the session.', array('key' => $this->sessionKey, 'received' => $serializedToken));
84
+
$this->logger->warning('Failed to unserialize the security token from the session.', array('key' => $this->sessionKey, 'received' => $serializedToken, 'exception' => $e));
85
85
}
86
86
$token = null;
87
87
}
@@ -178,4 +178,27 @@ protected function refreshUser(TokenInterface $token)
178
178
179
179
thrownew \RuntimeException(sprintf('There is no user provider for user "%s".', get_class($user)));
0 commit comments