aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/CssController.php
diff options
context:
space:
mode:
authorF. E Noel Nfebe <fenn25.fn@gmail.com>2023-06-04 17:11:51 +0100
committerGitHub <noreply@github.com>2023-06-04 17:11:51 +0100
commitcf75c2eaae82b58f5d1bd2cc765b31d5106eeafb (patch)
tree27770fb65b17fcac11ceab3930f28efd894bfa7e /core/Controller/CssController.php
parent0357e58e3e18aff02611952d23cbb3f7c7aac9b5 (diff)
parenta1ef0285f89112b8777eb47f3c34d07f111660b4 (diff)
downloadnextcloud-server-cf75c2eaae82b58f5d1bd2cc765b31d5106eeafb.tar.gz
nextcloud-server-cf75c2eaae82b58f5d1bd2cc765b31d5106eeafb.zip
Merge pull request #38602 from fsamapoor/replace_strpos_calls_in_core
Refactors "strpos" calls in /core to improve code readability.
Diffstat (limited to 'core/Controller/CssController.php')
-rw-r--r--core/Controller/CssController.php2
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