diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-13 09:26:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 09:26:47 +0200 |
commit | a1d570b51a561a46343590645855b9148892efac (patch) | |
tree | fa6da1579d48cb9155b538d1a1c8d8254d435d5e /lib | |
parent | b146d8d405841581adbf51171403da6146ec2087 (diff) | |
parent | d328e3cd0607523237caa2bd372474d6c9718676 (diff) | |
download | nextcloud-server-a1d570b51a561a46343590645855b9148892efac.tar.gz nextcloud-server-a1d570b51a561a46343590645855b9148892efac.zip |
Merge pull request #32833 from nextcloud/backport/32799/stable24
[stable24] Fix exception handling when profile data is too long
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index 5792ba1dc5d..6ad1d021219 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -202,7 +202,7 @@ class AccountManager implements IAccountManager { foreach ($properties as $property) { if (strlen($property->getValue()) > 2048) { if ($throwOnData) { - throw new InvalidArgumentException(); + throw new InvalidArgumentException($property->getName()); } else { $property->setValue(''); } |