summaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-13 14:12:10 +0200
committerLukas Reschke <lukas@owncloud.com>2015-10-13 14:12:10 +0200
commitabdbf10ebc4b7e384034f86840c5398d54220349 (patch)
treec8e43fdc2538e53c925f72fb927218b198f22f79 /core/application.php
parent3891cd9068596481cf1717e9b1a5bcae1cc0ce09 (diff)
downloadnextcloud-server-abdbf10ebc4b7e384034f86840c5398d54220349.tar.gz
nextcloud-server-abdbf10ebc4b7e384034f86840c5398d54220349.zip
Do not print exception message
In case of an error the error message often contains sensitive data such as the full path which potentially leads to a full path disclosure. Thus the error message should not directly get displayed to the user and instead be logged.
Diffstat (limited to 'core/application.php')
-rw-r--r--core/application.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/application.php b/core/application.php
index 12ec6b63fd4..eab2c686dc1 100644
--- a/core/application.php
+++ b/core/application.php
@@ -85,7 +85,8 @@ class Application extends App {
$c->query('L10N'),
$c->query('UserManager'),
$c->query('UserSession'),
- $c->query('UserFolder')
+ $c->query('UserFolder'),
+ $c->query('Logger')
);
});
@@ -128,6 +129,9 @@ class Application extends App {
$container->registerService('Mailer', function(SimpleContainer $c) {
return $c->query('ServerContainer')->getMailer();
});
+ $container->registerService('Logger', function(SimpleContainer $c) {
+ return $c->query('ServerContainer')->getLogger();
+ });
$container->registerService('TimeFactory', function(SimpleContainer $c) {
return new TimeFactory();
});