Use proper casing of username in avatar filesystem setup

* before you could request an avatar for User instead of user
  which sets up the filesystem for that user twice causing
  the sharing codes collision detection to detect a lot of
  collisions

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/1595/head
Morris Jobke 8 years ago committed by Lukas Reschke
parent a62f6fac51
commit 5dacd51c14
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1

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

Loading…
Cancel
Save