Skip to content

Commit 5b52107

Browse files
author
Pniel (Pini) Cohen
authored
Merge pull request #104 from cloudinary/v1.16.1
v1.16.1
2 parents 8ee2420 + b3e260d commit 5b52107

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cloudinary/cloudinary-magento2",
33
"description": "Cloudinary Magento 2 Integration.",
44
"type": "magento2-module",
5-
"version": "1.16.0",
5+
"version": "1.16.1",
66
"license": "MIT",
77
"require": {
88
"cloudinary/cloudinary_php": "^1.20.0"

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Cloudinary_Cloudinary" setup_version="1.16.0">
3+
<module name="Cloudinary_Cloudinary" setup_version="1.16.1">
44
<sequence>
55
<module name="Magento_ProductVideo"/>
66
<module name="Magento_PageBuilder"/>

marketplace.composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cloudinary/cloudinary",
33
"description": "Cloudinary Magento 2 Integration.",
44
"type": "magento2-module",
5-
"version": "1.16.0",
5+
"version": "1.16.1",
66
"license": "MIT",
77
"require": {
88
"cloudinary/cloudinary_php": "^1.20.0"

view/adminhtml/web/js/cloudinary-media-library-modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ define([
115115
asset.asset_derived_image_url
116116
.replace(new RegExp('^.*cloudinary.com/(' + this.options.cloudinaryMLoptions.cloud_name + '/)?' + asset.resource_type + '/' + asset.type + '/'), '')
117117
.replace(/\.[^/.]+$/, '')
118-
.replace(new RegExp('\/' + widget.escapeRegex(encodeURIComponent(asset.public_id)) + '$'), '')
118+
.replace(new RegExp('\/' + widget.escapeRegex(encodeURI(asset.public_id)) + '$'), '')
119119
.replace(new RegExp('\/v[0-9]{1,10}$'), '')
120120
.replace(new RegExp('\/'), ',');
121121
if (widget.options.useDerived) {
@@ -126,7 +126,7 @@ define([
126126
asset.asset_image_url = asset.asset_url
127127
.replace(/\.[^/.]+$/, "")
128128
.replace(new RegExp('\/v[0-9]{1,10}\/'), '/')
129-
.replace(new RegExp('\/(' + widget.escapeRegex(encodeURIComponent(asset.public_id)) + ')$'), '/so_auto/$1.jpg');
129+
.replace(new RegExp('\/(' + widget.escapeRegex(encodeURI(asset.public_id)) + ')$'), '/so_auto/$1.jpg');
130130
}
131131
$.ajax({
132132
url: widget.options.imageUploaderUrl,

view/adminhtml/web/js/get-video-information.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ define(
641641
thumbnail = videoInfo.videoSrc
642642
.replace(/\.[^/.]+$/, "")
643643
.replace(new RegExp('\/v[0-9]{1,10}\/'), '/')
644-
.replace(new RegExp('\/(' + this._escapeRegex(encodeURIComponent(tmp.public_id)) + ')$'), '/so_auto/$1.jpg');
644+
.replace(new RegExp('\/(' + this._escapeRegex(encodeURI(tmp.public_id)) + ')$'), '/so_auto/$1.jpg');
645645

646646
//Fallback for video thumbnail image, use placeholder or store logo
647647
$.ajax({

0 commit comments

Comments
 (0)