diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-20 12:52:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 12:52:39 +0200 |
commit | a94de5cb5a0a0e341dd3eb7130a41f95c71a6abc (patch) | |
tree | a58109a346d7488ce24ea33ad1c55d0ca35c3123 /apps | |
parent | 2a2d2cc23e1c0c2fe3eb43016e3ebbf4ea18db2f (diff) | |
parent | 35d8bdc840aa90e0788144214b475e607d81e9e0 (diff) | |
download | nextcloud-server-a94de5cb5a0a0e341dd3eb7130a41f95c71a6abc.tar.gz nextcloud-server-a94de5cb5a0a0e341dd3eb7130a41f95c71a6abc.zip |
Merge pull request #32910 from nextcloud/fix/profiler-invalid-utf8
Fix profiler trying to serialize invalid utf8
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/LDAP.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php index 3c579596941..545a09ca464 100644 --- a/apps/user_ldap/lib/LDAP.php +++ b/apps/user_ldap/lib/LDAP.php @@ -320,7 +320,15 @@ class LDAP implements ILDAPWrapper { $this->curArgs = $args; if ($this->dataCollector !== null) { - $args = array_map(fn ($item) => (!$this->isResource($item) ? $item : '(resource)'), $this->curArgs); + $args = array_map(function ($item) { + if ($this->isResource($item)) { + return '(resource)'; + } + if (isset($item[0]['value']['cookie']) && $item[0]['value']['cookie'] !== "") { + $item[0]['value']['cookie'] = "*opaque cookie*"; + } + return $item; + }, $this->curArgs); $this->dataCollector->startLdapRequest($this->curFunc, $args); } |