Skip to content

Commit

Permalink
fix for marketplaces (#59)
Browse files Browse the repository at this point in the history
* fix for marketplaces

we cannot use md5 anymore so we cannot determine the guid effectively.

* change md5 to sha-256
  • Loading branch information
JoeyK4816 committed Aug 21, 2019
1 parent fde3b18 commit 89666a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getStoreGuid($storeId)
if (empty($guid)) {
$baseUrl = $this->scopeConfig->getValue('web/unsecure/base_url');

$charid = strtoupper(md5($baseUrl . $storeId . $store->getName() . $store->getCode()));
$charid = strtoupper(hash('sha256', $baseUrl . $storeId . $store->getName() . $store->getCode()));

$guid = substr($charid, 0, 8) . '-'
. substr($charid, 8, 4) . '-'
Expand Down

0 comments on commit 89666a8

Please sign in to comment.