Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}


Expand Down