diff options
Diffstat (limited to 'core/Controller/JsController.php')
-rw-r--r-- | core/Controller/JsController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/JsController.php b/core/Controller/JsController.php index 885de5491e7..6b3e7ff2ed2 100644 --- a/core/Controller/JsController.php +++ b/core/Controller/JsController.php @@ -99,7 +99,7 @@ class JsController 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 |