Merge pull request #23089 from nextcloud/backport/23074/stable20

[stable20] Do not match sharees on an empty email address
pull/23141/head
Roeland Jago Douma 4 years ago committed by GitHub
commit fa4cd4435b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -147,9 +147,9 @@ class UserPlugin implements ISearchPlugin {
if (
strtolower($uid) === $lowerSearch ||
$lowerSearch !== '' && (strtolower($uid) === $lowerSearch ||
strtolower($userDisplayName) === $lowerSearch ||
strtolower($userEmail) === $lowerSearch
strtolower($userEmail) === $lowerSearch)
) {
if (strtolower($uid) === $lowerSearch) {
$foundUserById = true;

Loading…
Cancel
Save