]> BookStack Code Mirror - bookstack/commit
Fixed LDAP_DUMP_* options when data contains binary
authorDan Brown <redacted>
Mon, 9 May 2022 14:57:50 +0000 (15:57 +0100)
committerDan Brown <redacted>
Mon, 9 May 2022 14:57:50 +0000 (15:57 +0100)
commit328bc88f02adbb332a90ebb84426e0d0c246c3c2
tree04b0ae41df87ed8ce7be5ac404a4c5a96920ef22
parent2a99e23e6d2dfa8898eb7e2a9be97cbe9b819b2c
Fixed LDAP_DUMP_* options when data contains binary

Dumping details that were binary, such as the jpegphoto data, would
cause the dump to fail on the encoding to JSON.
This change forces content to be UTF8 before dumping.
Updated existing test to cover.

Closes #3396
app/Exceptions/JsonDebugException.php
tests/Auth/LdapTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.