diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-06-10 15:03:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 15:03:19 +0200 |
commit | 142b32c51ab00f3655bb8b9dc0dbd6b4f6843697 (patch) | |
tree | 40c39736b279a4385e0ad5701fa36f7b23ccc4e7 /lib | |
parent | 08655a14976ffbcb18aa2fdb557971012d9bcdfe (diff) | |
parent | 3235785c245d8d366cc01c0ae179a173cf973633 (diff) | |
download | nextcloud-server-142b32c51ab00f3655bb8b9dc0dbd6b4f6843697.tar.gz nextcloud-server-142b32c51ab00f3655bb8b9dc0dbd6b4f6843697.zip |
Merge pull request #32799 from nextcloud/bugfix/noid/fix-exception-handling-when-profile-data-is-too-long
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 b80c7887591..bdf33d73c29 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -220,7 +220,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(''); } |