From f7e8c10da5abbc368f0c93657187947165758ec6 Mon Sep 17 00:00:00 2001 From: Patrick Schnell Date: Sun, 6 Mar 2016 10:30:13 +0100 Subject: [PATCH] fix UTF-8 encoding / non-alphanumeric filename handling in Image Attributes Processor --- .../imageprocessor/imageitattributeemprocessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magmi/plugins/extra/itemprocessors/imageprocessor/imageitattributeemprocessor.php b/magmi/plugins/extra/itemprocessors/imageprocessor/imageitattributeemprocessor.php index 878e18a1..0495593e 100644 --- a/magmi/plugins/extra/itemprocessors/imageprocessor/imageitattributeemprocessor.php +++ b/magmi/plugins/extra/itemprocessors/imageprocessor/imageitattributeemprocessor.php @@ -388,7 +388,7 @@ public function getTargetName($fname, $item, $extra) $pname = (isset($extra['parsed']) ? $extra['imagename'] : $this->forcename); $cname = $this->parsename($pname, $item, $extra); } - $cname = strtolower(preg_replace("/%[0-9][0-9|A-F]/", "_", rawurlencode($cname))); + $cname = strtolower(preg_replace("/%[0-9|A-F][0-9|A-F]/", "_", rawurlencode($cname))); return $cname; }