Skip to content
Unverified Commit 3bea8e05 authored by Morris Jobke's avatar Morris Jobke
Browse files

Use mb_* string methods to extract first character for generated avatars

This fixes #8451 where the first character is a non-ASCII character. The `$string[0]` notation only extracted one byte and thus resulting in an invalid code. The `mb_strtoupper` method also allows to convert characters independently from the current locale on the server.

See also http://php.net/manual/en/function.mb-strtoupper.php



Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 6591a3bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment