diff --git a/Helper/Data.php b/Helper/Data.php index a1735f1..b4e19b6 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -106,7 +106,7 @@ public function getProductId($product) $rawProductId = $product; /** Customizations go here */ - $rawProductId = preg_replace_callback('/\./s', create_function('$match', 'return "_bv".ord($match[0])."_";'), $rawProductId); + /** No further customizations after this */ return $this->replaceIllegalCharacters($rawProductId); @@ -131,7 +131,7 @@ public function replaceIllegalCharacters($rawId) * Example encoded = qwerty_bv36__bv37__bv64__bv35_asdf */ - return preg_replace_callback('/[^\w\d\*-\-_]/s', create_function('$match', 'return "_bv".ord($match[0])."_";'), $rawId); + return preg_replace_callback('/[^\w\d\*-\-\._]/s', create_function('$match', 'return "_bv".ord($match[0])."_";'), $rawId); }