Skip to content

Commit

Permalink
always check the mtime of the system bundle and additionally the user…
Browse files Browse the repository at this point in the history
… specific certificate bundle if a user is given
  • Loading branch information
schiessle committed Jul 8, 2016
1 parent a84250e commit c493791
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/private/Security/CertificateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,12 @@ private function needsRebundling($uid = '') {
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));

// also depend on the system bundle
$sourceMTimes[] = $this->view->filemtime($this->getCertificateBundle(null));

if (!is_null($uid)) { // add the user bundle
$sourceMTimes[] = $this->view->filemtime($this->getCertificateBundle($uid));
}

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

0 comments on commit c493791

Please sign in to comment.