Skip to content

Commit

Permalink
CLOUDINARY-201: Fixed strict transformations issue by removing the tr…
Browse files Browse the repository at this point in the history
…ailing slash from the image path before generating the CLD URL on retrieveTransformed()
  • Loading branch information
pini-girit committed Jan 16, 2020
1 parent 48daa02 commit d68a2d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/code/community/Cloudinary/Cloudinary/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Cloudinary_Cloudinary>
<version>3.0.3</version>
<version>3.1.0</version>
</Cloudinary_Cloudinary>
</modules>

Expand Down
2 changes: 1 addition & 1 deletion lib/CloudinaryExtension/CloudinaryImageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function upload(Image $image)

public function retrieveTransformed(Image $image, Transformation $transformation)
{
$imagePath = \cloudinary_url($image->getId(), [
$imagePath = \cloudinary_url(ltrim($image->getId(), '/'), [
'transformation' => $transformation->build(),
'secure' => true,
'sign_url' => $this->configuration->getUseSignedUrls()
Expand Down
Binary file modified var/connect/Cloudinary_Cloudinary-3.1.0.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions var/connect/Cloudinary_Cloudinary.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<_>
<form_key>ZofwnBi0rpAQDBbY</form_key>
<form_key>3F4BbWrCQHzufos5</form_key>
<name>Cloudinary_Cloudinary</name>
<channel>community</channel>
<version_ids>
Expand Down Expand Up @@ -41,7 +41,7 @@
<max/>
</max>
<files>
<files> </files>
<files> </files>
</files>
</package>
<extension>
Expand Down
Loading

0 comments on commit d68a2d0

Please sign in to comment.