Skip to content

fix: TypeError when using LDAP group driver#63

Merged
ralflang merged 2 commits intohorde:FRAMEWORK_6_0from
jcdelepine:patch-2
Apr 3, 2026
Merged

fix: TypeError when using LDAP group driver#63
ralflang merged 2 commits intohorde:FRAMEWORK_6_0from
jcdelepine:patch-2

Conversation

@jcdelepine
Copy link
Copy Markdown
Contributor

The LDAP group driver's getData() returns attributes as arrays (correct per LDAP spec), causing a TypeError in htmlspecialchars() in the edit.inc template.

Normalize scalar values at the point of consumption in groups.php, unwrapping single-element arrays to their first value. Backward-compatible: string values from non-LDAP drivers are passed through unchanged.

The LDAP group driver's `getData()` returns attributes as arrays (correct per LDAP spec), causing a `TypeError` in `htmlspecialchars()` in the `edit.inc` template.

Normalize scalar values at the point of consumption in `groups.php`, unwrapping single-element arrays to their first value. Backward-compatible: string values from non-LDAP drivers are passed through unchanged.
@ralflang ralflang self-assigned this Apr 3, 2026
@ralflang ralflang added the bug label Apr 3, 2026
@ralflang ralflang merged commit 3c7772d into horde:FRAMEWORK_6_0 Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants