From 43c081bdc9cf9cabfa29d39babb6fa6454331ebb Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 27 Feb 2017 14:58:12 +0100 Subject: [PATCH] Fix public link for master key In public link mode there is no session, so the code should use the public key instead. --- apps/encryption/lib/KeyManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php index caae154b2d3..a6708df9a1c 100644 --- a/apps/encryption/lib/KeyManager.php +++ b/apps/encryption/lib/KeyManager.php @@ -405,7 +405,7 @@ class KeyManager { return ''; } - if ($this->util->isMasterKeyEnabled()) { + if (!is_null($uid) && $this->util->isMasterKeyEnabled()) { $uid = $this->getMasterKeyId(); }