Merge pull request #23090 from nextcloud/backport/23074/stable19
[stable19] Do not match sharees on an empty email address
This commit is contained in:
commit
12abb5d2d3
|
@ -113,9 +113,9 @@ class UserPlugin implements ISearchPlugin {
|
||||||
$userEmail = $user->getEMailAddress();
|
$userEmail = $user->getEMailAddress();
|
||||||
$uid = (string) $uid;
|
$uid = (string) $uid;
|
||||||
if (
|
if (
|
||||||
strtolower($uid) === $lowerSearch ||
|
$lowerSearch !== '' && (strtolower($uid) === $lowerSearch ||
|
||||||
strtolower($userDisplayName) === $lowerSearch ||
|
strtolower($userDisplayName) === $lowerSearch ||
|
||||||
strtolower($userEmail) === $lowerSearch
|
strtolower($userEmail) === $lowerSearch)
|
||||||
) {
|
) {
|
||||||
if (strtolower($uid) === $lowerSearch) {
|
if (strtolower($uid) === $lowerSearch) {
|
||||||
$foundUserById = true;
|
$foundUserById = true;
|
||||||
|
|
Loading…
Reference in New Issue