diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-07-06 22:51:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 22:51:06 +0200 |
commit | 744f1dd5638c7924be9c19621033d67991c65fd2 (patch) | |
tree | 9e1ccedcda433534195d5a98c0f8f9c065fc996e /lib/private | |
parent | 72274cf0e9186f86187678e7247c9fe17ec0c947 (diff) | |
parent | a0f5aebb89da4f18b37026e72e543bbe66b32980 (diff) | |
download | nextcloud-server-744f1dd5638c7924be9c19621033d67991c65fd2.tar.gz nextcloud-server-744f1dd5638c7924be9c19621033d67991c65fd2.zip |
Merge pull request #33052 from nextcloud/fix/set-display-name
Do not send display name twice for saving
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/User/Database.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index 4821a2fc632..fce7551c242 100644 --- a/lib/private/User/Database.php +++ b/lib/private/User/Database.php @@ -215,6 +215,10 @@ class Database extends ABackend implements * Change the display name of a user */ public function setDisplayName(string $uid, string $displayName): bool { + if (mb_strlen($displayName) > 64) { + return false; + } + $this->fixDI(); if ($this->userExists($uid)) { |