Skip to content

Commit 9960069

Browse files
committed
Updating the strpos() check to use a type-safe
strict equals, thanks to @mcos reminding me. 👍
1 parent cb5e869 commit 9960069

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Robin/Ntlm/Message/AbstractAuthenticateMessageEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function identifyTargetName($username, $nt_domain, ServerChallenge $serve
126126
* @link https://msdn.microsoft.com/en-us/library/windows/desktop/aa380525(v=vs.85).aspx
127127
* @link http://davenport.sourceforge.net/ntlm.html#nameVariations
128128
*/
129-
if (strpos($username, static::USER_PRINCIPAL_NAME_SEPARATOR)) {
129+
if (false !== strpos($username, static::USER_PRINCIPAL_NAME_SEPARATOR)) {
130130
$target_name = '';
131131
}
132132

0 commit comments

Comments
 (0)