Merge pull request #1645 from nextcloud/stable10-backport-1595

[stable10] Use proper casing of username in avatar filesystem setup
This commit is contained in:
Joas Schilling 2016-10-10 10:00:02 +02:00 committed by GitHub
commit 72ede569e7
1 changed files with 2 additions and 0 deletions

View File

@ -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