Skip to content

Commit

Permalink
Update lib/private/Collaboration/Collaborators/MailPlugin.php
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux and Altahrim authored May 22, 2024
1 parent 0c0e296 commit 136bfef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/private/Collaboration/Collaborators/MailPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
if ($search && !$searchResult->hasExactIdMatch($emailType)) {
$strictMailCheck = $this->config->getAppValue('core', 'shareapi_enforce_strict_email', 'yes') === 'yes';
$validator = new EmailValidator();
$validation = match ($strictMailCheck) {
false => new RFCValidation(),
true => new NoRFCWarningsValidation(),
};
$validation = $strictMailCheck ? new RFCValidation() : new NoRFCWarningsValidation();

if ($validator->isValid($search, $validation)) {
$result['exact'][] = [
Expand Down

0 comments on commit 136bfef

Please sign in to comment.