From: Tim Düsterhus Date: Sat, 10 Feb 2018 14:58:54 +0000 (+0100) Subject: Fix stack trace handling with resources in parameters X-Git-Tag: 3.0.12_pl_1~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=403684df6061ef623c795ba5a7462472a69976b3;p=GitHub%2FWoltLab%2FWCF.git Fix stack trace handling with resources in parameters --- diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index 64de353523..2e3a2620b9 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -135,6 +135,8 @@ namespace wcf\functions\exception { return array_map(function () { return '[redacted]'; }, $item); + case 'resource': + return 'resource('.get_resource_type($item).')'; default: return $item; } @@ -535,6 +537,8 @@ EXPLANATION; }, $keys)).']'; case 'object': return get_class($item); + case 'resource': + return 'resource('.get_resource_type($item).')'; } throw new \LogicException('Unreachable');