Skip to content

Commit 5460215

Browse files
author
robin.kluth
committed
Ooops
1 parent f2e8531 commit 5460215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LdapAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function searchUser(string $searchFor, $attributes = "", $searchFilter =
340340
$searchFilter = "(&(objectCategory=person)" . $onlyActive . "(|(objectSid=%searchFor%)(sIDHistory=%searchFor%)(samaccountname=*%searchFor%*)(mail=*%searchFor%*)(sn=*%searchFor%*)(givenName=*%searchFor%*)(l=%searchFor%)(physicalDeliveryOfficeName=%searchFor%)))";
341341
}
342342

343-
if (empty($searchFor) && strpos($searchFilter, '%searchFor%') === false) {
343+
if (empty($searchFor) && strpos($searchFilter, '%searchFor%') !== false) {
344344
throw new InvalidArgumentException("Search term is empty but the filter has a placeholder set! Set a term or set a new filter.");
345345
}
346346

0 commit comments

Comments
 (0)