소스 검색

[Security] change a comparison to use a strict comparison

Fabien Potencier 14 년 전
부모
커밋
6419456de4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Component/Security/Core/Authentication/Provider/AnonymousAuthenticationProvider.php

+ 1 - 1
src/Symfony/Component/Security/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.');
         }