diff --git a/composer.json b/composer.json index 4b0cbfb..22539bf 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "frosh/tools", - "version": "3.0.0", + "version": "3.1.0", "description": "Provides some basic things for managing the Shopware Installation", "type": "shopware-platform-plugin", "license": "MIT", @@ -35,10 +35,10 @@ } }, "require": { - "shopware/core": "~6.6.0" + "shopware/core": "~6.6.0 || ~6.7.0" }, "require-dev": { - "shopware/elasticsearch": "~6.6.0" + "shopware/elasticsearch": "~6.6.0 || ~6.7.0" }, "config": { "allow-plugins": { diff --git a/src/Controller/ShopwareFilesController.php b/src/Controller/ShopwareFilesController.php index faad8cb..b8ae0a2 100644 --- a/src/Controller/ShopwareFilesController.php +++ b/src/Controller/ShopwareFilesController.php @@ -64,7 +64,8 @@ public function listShopwareFiles(): JsonResponse $data = $this->httpClient->request('GET', $url)->getContent(false); $data = trim((string) $data); - if (empty($data)) { + // Cloudflare fallbacks to index.html for 404 pages... + if (empty($data) || str_contains($data, '')) { return new JsonResponse(['error' => 'No file information for this Shopware version']); } diff --git a/src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache/template.twig b/src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache/template.twig index 6064c78..6d85022 100644 --- a/src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache/template.twig +++ b/src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache/template.twig @@ -1,6 +1,7 @@ - - -