Skip to content
Snippets Groups Projects
Commit b37d62d9 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

fix uncaught exception on not permitted file types when setting avatar, fixes #17232

parent 85b7bde7
No related branches found
No related tags found
No related merge requests found
...@@ -342,7 +342,13 @@ class User { ...@@ -342,7 +342,13 @@ class User {
} }
$avatar = $this->avatarManager->getAvatar($this->uid); $avatar = $this->avatarManager->getAvatar($this->uid);
try {
$avatar->set($this->image); $avatar->set($this->image);
} catch (\Exception $e) {
\OC::$server->getLogger()->notice(
'Could not set avatar for ' . $this->dn . ', because: ' . $e->getMessage(),
['app' => 'user_ldap']);
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment