diff options
Diffstat (limited to 'core/Controller/CssController.php')
-rw-r--r-- | core/Controller/CssController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php index 4cd2996835e..792be71f9e1 100644 --- a/core/Controller/CssController.php +++ b/core/Controller/CssController.php @@ -101,7 +101,7 @@ class CssController extends Controller { private function getFile(ISimpleFolder $folder, string $fileName, bool &$gzip): ISimpleFile { $encoding = $this->request->getHeader('Accept-Encoding'); - if (strpos($encoding, 'gzip') !== false) { + if (str_contains($encoding, 'gzip')) { try { $gzip = true; return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz |