diff --git a/core/FileIntegrity.php b/core/FileIntegrity.php
index d7666c8c5dbd9ae16403136365441e9abc4fd5a2..c7b12222442711cda0797ea9f16c603e5d5fc820 100644
--- a/core/FileIntegrity.php
+++ b/core/FileIntegrity.php
@@ -310,7 +310,7 @@ class FileIntegrity
     {
         $expected = self::getFilesNotInManifestButExpectedAnyway();
         foreach ($expected as $expectedPattern) {
-            if (fnmatch($expectedPattern, $file)) {
+            if (fnmatch($expectedPattern, $file, defined('FNM_CASEFOLD') ? FNM_CASEFOLD : 0)) {
                 return true;
             }
         }