diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-24 11:20:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 11:20:03 +0300 |
commit | 9910b84a4b30d2440d53097bb411b631f093cfd6 (patch) | |
tree | e929946e4a6952eef84e8d37f22069d81a7906fc /apps/user_ldap | |
parent | ffe83675acf88173402e3f7aa0dca04e8768dcb5 (diff) | |
parent | 6beddbc163d92dbe3106808d9e70005c9b598bad (diff) |
Merge pull request #32939 from nextcloud/backport/32910/stable24
[stable24] Fix profiler trying to serialize invalid utf8
Diffstat (limited to 'apps/user_ldap')
-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); } |