Skip to content

Commit

Permalink
https://github.com/mage2pro/pwa-studio-2024-02-24-backend/issues/1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 24, 2024
1 parent d411364 commit a00ae20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vendor/magento/framework/Image/Adapter/Gd2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a00ae20

Please sign in to comment.