Merge pull request #1645 from nextcloud/stable10-backport-1595
[stable10] Use proper casing of username in avatar filesystem setup
This commit is contained in:
commit
72ede569e7
|
@ -84,6 +84,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
|
||||
|
|
Loading…
Reference in New Issue