aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log/ExceptionSerializer.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-12-04 09:22:30 +0100
committerVincent Petry <vincent@nextcloud.com>2020-12-04 09:30:20 +0100
commit9b3361ce8740226ae60bbc0a525d617e43286843 (patch)
treedbee991beb39960ad6e3cae1ea2847bbe1b7cc34 /lib/private/Log/ExceptionSerializer.php
parent32ded877dc30b18f6eba7f3854988ce2992feb00 (diff)
downloadnextcloud-server-9b3361ce8740226ae60bbc0a525d617e43286843.tar.gz
nextcloud-server-9b3361ce8740226ae60bbc0a525d617e43286843.zip
Don't log params of imagecreatefromstring
To prevent flooding the log with actual image data. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/private/Log/ExceptionSerializer.php')
-rw-r--r--lib/private/Log/ExceptionSerializer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php
index a2bc1963003..339a6604ed1 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -86,6 +86,9 @@ class ExceptionSerializer {
// files_external: UserStoragesController
'update',
+
+ // Preview providers, don't log big data strings
+ 'imagecreatefromstring',
];
public const methodsWithSensitiveParametersByClass = [