Skip to content

Commit cccf9bd

Browse files
committed
Merge branch 'MC-31566' into MC-33363
2 parents 0c640a4 + 6c3f51b commit cccf9bd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

setup/src/Magento/Setup/Model/ConfigOptionsList/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,6 @@ private function getDefaultConfigValue($inputKey)
282282
*/
283283
private function generateCachePrefix(): string
284284
{
285-
return substr(\md5(dirname(__DIR__, 6)), 0, 3) . '_';
285+
return substr(\hash('sha256', dirname(__DIR__, 6)), 0, 3) . '_';
286286
}
287287
}

setup/src/Magento/Setup/Model/ConfigOptionsList/PageCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,6 @@ private function getDefaultConfigValue($inputKey)
284284
*/
285285
private function generateCachePrefix(): string
286286
{
287-
return substr(\md5(dirname(__DIR__, 6)), 0, 3) . '_';
287+
return substr(\hash('sha256', dirname(__DIR__, 6)), 0, 3) . '_';
288288
}
289289
}

setup/src/Magento/Setup/Test/Unit/Model/ConfigOptionsList/CacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,6 @@ public function testValidateWithInvalidInput()
237237
*/
238238
private function expectedIdPrefix(): string
239239
{
240-
return substr(\md5(dirname(__DIR__, 8)), 0, 3) . '_';
240+
return substr(\hash('sha256', dirname(__DIR__, 8)), 0, 3) . '_';
241241
}
242242
}

setup/src/Magento/Setup/Test/Unit/Model/ConfigOptionsList/PageCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,6 @@ public function testValidationWithInvalidData()
238238
*/
239239
private function expectedIdPrefix(): string
240240
{
241-
return substr(\md5(dirname(__DIR__, 8)), 0, 3) . '_';
241+
return substr(\hash('sha256', dirname(__DIR__, 8)), 0, 3) . '_';
242242
}
243243
}

0 commit comments

Comments
 (0)