]> source.dussan.org Git - nextcloud-server.git/commit
fix(LDAP): ensure stored groups are formatted as simple list 42405/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 20 Dec 2023 15:56:16 +0000 (16:56 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 20 Dec 2023 16:05:58 +0000 (17:05 +0100)
commitee096f8629b639863f326fb9913befde4143a922
tree34299bc5bbca7e6b40889fcadaf7104cb9f6a531
parent4f7ed475de1d71d3b0481b1681b8d08bb1920a6c
fix(LDAP): ensure stored groups are formatted as simple list

With array_unique it is possible that the keys are not in sequential order
but have gaps. json_encode then would store them as associative array,
which later on json_decode would result in a stdClass by default. This is
unexpected and would also contradict the return type hint.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Group_LDAP.php
apps/user_ldap/tests/Group_LDAPTest.php