Skip to content

Commit c493791

Browse files
committed
always check the mtime of the system bundle and additionally the user specific certificate bundle if a user is given
1 parent a84250e commit c493791

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/private/Security/CertificateManager.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,12 @@ private function needsRebundling($uid = '') {
238238
if (!$this->view->file_exists($targetBundle)) {
239239
return true;
240240
}
241-
if (!is_null($uid)) { // also depend on the system bundle
242-
$sourceBundles[] = $this->view->filemtime($this->getCertificateBundle(null));
241+
242+
// also depend on the system bundle
243+
$sourceMTimes[] = $this->view->filemtime($this->getCertificateBundle(null));
244+
245+
if (!is_null($uid)) { // add the user bundle
246+
$sourceMTimes[] = $this->view->filemtime($this->getCertificateBundle($uid));
243247
}
244248

245249
$sourceMTime = array_reduce($sourceMTimes, function ($max, $mtime) {

0 commit comments

Comments
 (0)