diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-07-22 13:37:59 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-07-22 13:37:59 +0200 |
commit | ba039320edf278a60887c3345a4737b09249cbd4 (patch) | |
tree | 0ddb89d7baef75380af2ce81674c62053a384049 /Core/Authentication/Provider/AnonymousAuthenticationProvider.php | |
parent | 4f02e874586a07385cf2120c5fbe93c79f9b1a0f (diff) | |
download | symfony-security-ba039320edf278a60887c3345a4737b09249cbd4.zip symfony-security-ba039320edf278a60887c3345a4737b09249cbd4.tar.gz symfony-security-ba039320edf278a60887c3345a4737b09249cbd4.tar.bz2 |
[Security] change a comparison to use a strict comparison
Diffstat (limited to 'Core/Authentication/Provider/AnonymousAuthenticationProvider.php')
-rw-r--r-- | Core/Authentication/Provider/AnonymousAuthenticationProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/Provider/AnonymousAuthenticationProvider.php b/Core/Authentication/Provider/AnonymousAuthenticationProvider.php index c48a27e..ea91075 100644 --- a/Core/Authentication/Provider/AnonymousAuthenticationProvider.php +++ b/Core/Authentication/Provider/AnonymousAuthenticationProvider.php @@ -43,7 +43,7 @@ class AnonymousAuthenticationProvider implements AuthenticationProviderInterface return null; } - if ($this->key != $token->getKey()) { + if ($this->key !== $token->getKey()) { throw new BadCredentialsException('The Token does not contain the expected key.'); } |