]> source.dussan.org Git - nextcloud-server.git/commit
Do not match sharees on an empty email address 23089/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 28 Sep 2020 13:35:11 +0000 (15:35 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 29 Sep 2020 07:29:43 +0000 (07:29 +0000)
commit851333edabc4de549098d646494a2d74ae13609b
treee4f9ddb498ed327e429d771385ccae2756cef19f
parentfb426c90b7936a5bda2f2483c4ae42dff4811804
Do not match sharees on an empty email address

When asking for sharees we compare not only UID and displayname but also
the email address. And if that matches we return the sharee as an exact
match. This logic had a flaw as in that it also matched the empty string
to users with no email address.

This is most noticeable when you disable sharee enumeration and open the
ownership transfer dialog. It suggested other users of the instance
before. This has stopped now.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Collaboration/Collaborators/UserPlugin.php