diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-02-21 13:29:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 13:29:28 +0100 |
commit | 27aa0761bc81a86e09c9de3aa2d840a79b458470 (patch) | |
tree | 2ffc063ec866e0c5c20ee552d98761c0a3d3533d /lib | |
parent | 86be2687fb8a8d0b249a09bc6111d7f719dbcd68 (diff) | |
parent | f1568b96ce42410f5631ef765ce035ead5d4ce68 (diff) | |
download | nextcloud-server-27aa0761bc81a86e09c9de3aa2d840a79b458470.tar.gz nextcloud-server-27aa0761bc81a86e09c9de3aa2d840a79b458470.zip |
Merge pull request #8470 from nextcloud/13-8468
[stable13] Use mb_* string methods to extract first character for generated avatars
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Avatar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index 45ad66d0817..863d27a8747 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -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); |