diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-20 12:59:04 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-08-21 17:59:23 +0200 |
commit | 36eef2ddabd77ff6279f3bd6896ced4959f1c370 (patch) | |
tree | 82f28ac58905ed449d5678ffb505eec4d3ec7fde /cron.php | |
parent | 510010e774c4019b7fc616c90085649abb7afac3 (diff) | |
download | nextcloud-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.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(); |