Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-07 22:42:20 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-07-07 22:44:36 +0300
commit8d2d051841c30a9596a8ec2b680beb73ee955b87 (patch)
treec0a861fa02d0f2e4bd7f19def00921f147939559 /lib/base.php
parent09b9f94c38dda015412cebf2cc8f7c7100001a67 (diff)
Remove hook for initSession
It's not used anyways and allowed to manipulate the state of the session. Also removed the code handling this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/base.php b/lib/base.php
index 8109e47cdc0..6d0790e9285 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -419,14 +419,8 @@ class OC {
$sessionName = OC_Util::getInstanceId();
try {
- // Allow session apps to create a custom session object
- $useCustomSession = false;
- $session = self::$server->getSession();
- OC_Hook::emit('OC', 'initSession', ['session' => &$session, 'sessionName' => &$sessionName, 'useCustomSession' => &$useCustomSession]);
- if (!$useCustomSession) {
- // set the session name to the instance id - which is unique
- $session = new \OC\Session\Internal($sessionName);
- }
+ // set the session name to the instance id - which is unique
+ $session = new \OC\Session\Internal($sessionName);
$cryptoWrapper = \OC::$server->getSessionCryptoWrapper();
$session = $cryptoWrapper->wrapSession($session);