Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-06-09 23:07:46 +0300
committerJoas Schilling <coding@schilljs.com>2022-06-12 14:53:14 +0300
commit3189626a817241f1d31f8f37e32e54ed529e3c18 (patch)
tree755c17f6cbb9b99dc18b795c443d590ae56f1b46 /lib/private
parente8ab9d1e6d058072c923b8a6ed114b6d3ae1e618 (diff)
Fix exception handling when profile data is too longbackport/32799/stable22
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Accounts/AccountManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php
index 19faa6dabfe..0a1f7facee0 100644
--- a/lib/private/Accounts/AccountManager.php
+++ b/lib/private/Accounts/AccountManager.php
@@ -194,7 +194,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('');
}