diff options
-rw-r--r-- | lib/private/AvatarManager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/AvatarManager.php b/lib/private/AvatarManager.php index 0eabc3a1754..6f1f380a903 100644 --- a/lib/private/AvatarManager.php +++ b/lib/private/AvatarManager.php @@ -91,6 +91,8 @@ class AvatarManager implements IAvatarManager { if (is_null($user)) { throw new \Exception('user does not exist'); } + // sanitize userID - fixes casing issue (needed for the filesystem stuff that is done below) + $userId = $user->getUID(); /* * Fix for #22119 |