diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-08 18:09:08 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-08 18:24:37 +0200 |
commit | 49cad153afb7dedc70842f9df575f3cb1f41ff27 (patch) | |
tree | 83566c717d8237d986792455a005990319bf25e9 /lib/private/Security | |
parent | a84250e0afdb98d07b268914b56c8763c17f5a73 (diff) | |
download | nextcloud-server-49cad153afb7dedc70842f9df575f3cb1f41ff27.tar.gz nextcloud-server-49cad153afb7dedc70842f9df575f3cb1f41ff27.zip |
always check the mtime of the system bundle and additionally the user specific certificate bundle if a user is given
Diffstat (limited to 'lib/private/Security')
-rw-r--r-- | lib/private/Security/CertificateManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Security/CertificateManager.php b/lib/private/Security/CertificateManager.php index befdcb6b85b..77d0c844b8c 100644 --- a/lib/private/Security/CertificateManager.php +++ b/lib/private/Security/CertificateManager.php @@ -238,8 +238,9 @@ class CertificateManager implements ICertificateManager { if (!$this->view->file_exists($targetBundle)) { return true; } + if (!is_null($uid)) { // also depend on the system bundle - $sourceBundles[] = $this->view->filemtime($this->getCertificateBundle(null)); + $sourceMTimes[] = $this->view->filemtime($this->getCertificateBundle(null)); } $sourceMTime = array_reduce($sourceMTimes, function ($max, $mtime) { |