From 804df33544dbee71db865f4f61ccb0e68106433a Mon Sep 17 00:00:00 2001 From: the-djmaze <3752035+the-djmaze@users.noreply.github.com> Date: Mon, 2 Nov 2026 16:10:14 +0100 Subject: [PATCH] Bugfix undefined $aSri --- .../v/0.0.0/app/libraries/snappymail/integrity.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php b/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php index 6f0ff3447..d193efbdd 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php @@ -128,11 +128,11 @@ abstract class Integrity private static $aSri; public static function loadSriHashes(): array { - if (!\is_array($aSri)) { + if (!\is_array(static::$aSri)) { $sSriPath = APP_VERSION_ROOT_PATH . 'static/sri.json'; - $aSri = \is_readable($sSriPath) ? \json_decode(\file_get_contents($sSriPath), true) : []; - if (!$aSri) { - $aSri = [ + static::$aSri = \is_readable($sSriPath) ? \json_decode(\file_get_contents($sSriPath), true) : []; + if (!static::$aSri) { + static::$aSri = [ 'libs.min.js' => \hash_file('sha384', APP_VERSION_ROOT_PATH . 'static/js/min/libs.min.js'), 'admin.min.js' => \hash_file('sha384', APP_VERSION_ROOT_PATH . 'static/js/min/admin.min.js'), 'app.min.js' => \hash_file('sha384', APP_VERSION_ROOT_PATH . 'static/js/min/app.min.js'), @@ -141,6 +141,6 @@ abstract class Integrity ]; } } - return $aSri; + return static::$aSri; } }