Skip to content

Fix: $image can contain query string and this breaks pathinfo parsing#8

Open
miraclebg wants to merge 2 commits intoWeb200:masterfrom
nimasystems:feat-fix-pathinfo-issue
Open

Fix: $image can contain query string and this breaks pathinfo parsing#8
miraclebg wants to merge 2 commits intoWeb200:masterfrom
nimasystems:feat-fix-pathinfo-issue

Conversation

@miraclebg
Copy link

On Magento 2.4.8 (possible earier versions) when the media library uses the new dynamic urls instead of the legacy ones an exception occurs:

$image can initially be:

http://website.com/media/catalog/product/i/m/img_6657.jpg?width=265&height=265&store=default&image-type=image

which pathinfo converts to:

jpg?width=265&height=265&store=default&image-type=image

The extension check fails next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant