Skip to content

Commit

Permalink
address 3rd review
Browse files Browse the repository at this point in the history
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
  • Loading branch information
szaimen and come-nc authored Nov 17, 2022
1 parent b44cef3 commit a24eb65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/theming/lib/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ public function getCacheBuster(): string {
$userCacheBuster = '';
if ($userId) {
$userCacheBusterValue = (int)$this->config->getUserValue($userId, 'theming', 'userCacheBuster', '0');
$userCacheBuster = substr(sha1($userId . '_' . $userCacheBusterValue), 0, 8);
$userCacheBuster = $userId . '_' . $userCacheBusterValue;
}
$systemCacheBuster = $this->config->getAppValue('theming', 'cachebuster', '0');
return $userCacheBuster . $systemCacheBuster;
return substr(sha1($userCacheBuster . $systemCacheBuster), 0, 8);
}
}

0 comments on commit a24eb65

Please sign in to comment.