Imager-Craft icon indicating copy to clipboard operation
Imager-Craft copied to clipboard

Error 401 - Converting %2C to , in image url

Open Nav33d opened this issue 8 years ago • 3 comments

Hi,

I'm passing an external url to imager and it is converting %2C to , which results in 401 error.

Original URL:

https://i.guim.co.uk/img/media/de57cb899cdbe150331acb2de4fa816aca20b12e/0_155_4992_2995/master/4992.jpg?w=1200&h=630&q=55&auto=format&usm=12&fit=crop&crop=faces%2Centropy&bm=normal&ba=bottom%2Cleft&blend64=aHR0cHM6Ly91cGxvYWRzLmd1aW0uY28udWsvMjAxNi8wNS8yNS9vdmVybGF5LWxvZ28tMTIwMC05MF9vcHQucG5n&s=bb524716e8e010911d74da0ddf1ebfcc

Imager URL:

https://i.guim.co.uk/img/media/de57cb899cdbe150331acb2de4fa816aca20b12e/0_155_4992_2995/master/4992.jpg?w=1200&h=630&q=55&auto=format&usm=12&fit=crop&crop=faces,entropy&bm=normal&ba=bottom,left&blend64=aHR0cHM6Ly91cGxvYWRzLmd1aW0uY28udWsvMjAxNi8wNS8yNS9vdmVybGF5LWxvZ28tMTIwMC05MF9vcHQucG5n&s=bb524716e8e010911d74da0ddf1ebfcc

Could you please advise if there is a way to avoid this conversion?

Many thanks

Nav33d avatar Jan 05 '17 14:01 Nav33d

Seems to be an issue where query strings were urldecoded. Think I've fixed it, could you try to replace the Imager_ImagePathsModel.php file in the imager/models folder with the attached, zipped one, and report back if that fixes your issue (and doesn't introduce any new ones ;))?

Imager_ImagePathsModel.php.zip

aelvan avatar Jan 08 '17 16:01 aelvan

Hi @Nav33d did you get a chance to test this fix?

aelvan avatar Jan 17 '17 10:01 aelvan

Hi @aelvan, Apologies for the delayed reply! I'm still getting the same error :(

Nav33d avatar Jan 27 '17 16:01 Nav33d