From a00ae20b00837109af1661bb0b8f914334fcb3ea Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Sat, 24 Feb 2024 08:40:50 +0000 Subject: [PATCH] https://github.com/mage2pro/pwa-studio-2024-02-24-backend/issues/1 --- vendor/magento/framework/Image/Adapter/Gd2.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/magento/framework/Image/Adapter/Gd2.php b/vendor/magento/framework/Image/Adapter/Gd2.php index 5c06eb6..e2586cf 100644 --- a/vendor/magento/framework/Image/Adapter/Gd2.php +++ b/vendor/magento/framework/Image/Adapter/Gd2.php @@ -93,7 +93,10 @@ private function validateURLScheme(string $filename) : bool { $allowed_schemes = ['ftp', 'ftps', 'http', 'https']; $url = parse_url($filename); - if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes)) { + # 2024-02-24 Dmitrii Fediuk https://upwork.com/fl/mage2pro + # 1) "Adapt Magento to Windows": https://github.com/mage2pro/pwa-studio-2024-02-24-backend/issues/1 + # 2) "How to fix catalog images in Magento ≥ 2.3.5 in Windows?" https://mage2.pro/t/6210 + if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) { return false; }