diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-29 09:27:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 09:27:49 +0200 |
commit | cb08c6cd1866ee7931d2ddafffe3fb2e93b14565 (patch) | |
tree | e5f9b97490ef362e5d562b7a76a8d9f280b26fb2 | |
parent | 7d776091bd0a1e49622594153937fc1a3265764d (diff) | |
parent | bbd962043b57a9bcb05bbefa7d273e45c88a5857 (diff) | |
download | nextcloud-server-cb08c6cd1866ee7931d2ddafffe3fb2e93b14565.tar.gz nextcloud-server-cb08c6cd1866ee7931d2ddafffe3fb2e93b14565.zip |
Merge pull request #23074 from nextcloud/fix/sharee-search-empty-email-match
Do not match sharees on an empty email address
-rw-r--r-- | lib/private/Collaboration/Collaborators/UserPlugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index 13e914367d7..2d21c6a16f7 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -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; |