diff options
Diffstat (limited to 'apps/user_ldap/ajax/wizard.php')
-rw-r--r-- | apps/user_ldap/ajax/wizard.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php index 8cae22daf19..dcfe9ff76b8 100644 --- a/apps/user_ldap/ajax/wizard.php +++ b/apps/user_ldap/ajax/wizard.php @@ -111,6 +111,10 @@ switch ($action) { \OC_JSON::error(['message' => $l->t('No data specified')]); exit; } + if (is_array($key)) { + \OC_JSON::error(['message' => $l->t('Invalid data specified')]); + exit; + } $cfg = [$key => $val]; $setParameters = []; $configuration->setConfiguration($cfg, $setParameters); |