Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-02-21 15:29:28 +0300
committerGitHub <noreply@github.com>2018-02-21 15:29:28 +0300
commit27aa0761bc81a86e09c9de3aa2d840a79b458470 (patch)
tree2ffc063ec866e0c5c20ee552d98761c0a3d3533d /lib
parent86be2687fb8a8d0b249a09bc6111d7f719dbcd68 (diff)
parentf1568b96ce42410f5631ef765ce035ead5d4ce68 (diff)
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.php2
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);