Skip to content

Commit bd3a041

Browse files
author
Alexander Tolochko
committed
Merge branch 'develop'
2 parents e70657e + d2f955a commit bd3a041

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Plugin/File/Validator/NotProtectedExtensionPlugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ public function __construct(
3131
*
3232
* @param NotProtectedExtension $subject
3333
* @param $result
34-
* @return mixed
34+
* @return string|string[]
3535
*/
3636
public function afterGetProtectedFileExtensions(NotProtectedExtension $subject, $result)
3737
{
3838
$vectorExtensions = $this->imageHelper->getVectorExtensions();
3939

40+
if (is_string($result)) {
41+
$result = explode(',', $result);
42+
}
43+
4044
foreach (array_keys($result) as $extension) {
4145
if (in_array($extension, $vectorExtensions)) {
4246
unset($result[$extension]);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"php": ">=5.5.0"
66
},
77
"type": "magento2-module",
8-
"version": "1.1.6",
8+
"version": "1.1.7",
99
"license": [
1010
"OSL-3.0",
1111
"AFL-3.0"

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="MagestyApps_WebImages" setup_version="1.1.6" />
9+
<module name="MagestyApps_WebImages" setup_version="1.1.7" />
1010
</config>

0 commit comments

Comments
 (0)