mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #8470 from nextcloud/13-8468
[stable13] Use mb_* string methods to extract first character for generated avatars
This commit is contained in:
commit
27aa0761bc
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ class Avatar implements IAvatar {
|
|||
* @return string
|
||||
*/
|
||||
private function generateAvatar($userDisplayName, $size) {
|
||||
$text = strtoupper(substr($userDisplayName, 0, 1));
|
||||
$text = mb_strtoupper(mb_substr($userDisplayName, 0, 1), 'UTF-8');
|
||||
$backgroundColor = $this->avatarBackgroundColor($userDisplayName);
|
||||
|
||||
$im = imagecreatetruecolor($size, $size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue