aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-07-20 12:59:04 +0200
committerLukas Reschke <lukas@owncloud.com>2015-08-21 17:59:23 +0200
commit36eef2ddabd77ff6279f3bd6896ced4959f1c370 (patch)
tree82f28ac58905ed449d5678ffb505eec4d3ec7fde /cron.php
parent510010e774c4019b7fc616c90085649abb7afac3 (diff)
downloadnextcloud-server-36eef2ddabd77ff6279f3bd6896ced4959f1c370.tar.gz
nextcloud-server-36eef2ddabd77ff6279f3bd6896ced4959f1c370.zip
Add a session wrapper to encrypt the data before storing it on disk
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index 987c7dbca7f..ed2a20a1e1f 100644
--- a/cron.php
+++ b/cron.php
@@ -52,7 +52,10 @@ try {
\OC::$server->getSession()->close();
// initialize a dummy memory session
- \OC::$server->setSession(new \OC\Session\Memory(''));
+ $session = new \OC\Session\Memory('');
+ $cryptoWrapper = \OC::$server->getSessionCryptoWrapper();
+ $session = $cryptoWrapper->wrapSession($session);
+ \OC::$server->setSession($session);
$logger = \OC::$server->getLogger();