mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Fix profiler trying to serialize invalid utf8
The cookie value contains invalid utf8 characters most of the time so let's just ignore it as it is also not that interesting to analyse. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
596ead787b
commit
35d8bdc840
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue