diff options
author | Joas Schilling <coding@schilljs.com> | 2022-06-09 22:07:46 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-06-09 22:07:46 +0200 |
commit | 3235785c245d8d366cc01c0ae179a173cf973633 (patch) | |
tree | e97fa9e47455766c60eb5727c491663c2bfe95d3 /lib | |
parent | 0523626b98ea356842b0c49e63808b300bb2096d (diff) | |
download | nextcloud-server-3235785c245d8d366cc01c0ae179a173cf973633.tar.gz nextcloud-server-3235785c245d8d366cc01c0ae179a173cf973633.zip |
Fix exception handling when profile data is too long
Signed-off-by: Joas Schilling <coding@schilljs.com>
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(''); } |