mirror of
https://github.com/nextcloud/server.git
synced 2026-05-21 17:45:40 -04:00
fix: use mb_substr
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
fb8f85f30f
commit
9c365d00b6
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ class SaveAccountsTableData implements IRepairStep {
|
|||
|
||||
if ($userdata['display_name'] !== null) {
|
||||
// user.displayname only allows 64 characters but old accounts.display_name allowed 255 characters
|
||||
$update->setParameter('displayname', substr($userdata['display_name'], 0, 64))
|
||||
$update->setParameter('displayname', mb_substr($userdata['display_name'], 0, 64))
|
||||
->setParameter('userid', $userdata['user_id']);
|
||||
$update->execute();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue