File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Test/Unit/Model/Entity/Attribute Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ public function beforeSave()
127
127
);
128
128
$ isReservedSystemName = in_array (strtolower ($ attributeGroupCode ), $ this ->reservedSystemNames );
129
129
if (empty ($ attributeGroupCode ) || $ isReservedSystemName ) {
130
- // in the following code sha1 is not used for security purposes
131
- $ attributeGroupCode = sha1 (strtolower ($ groupName ));
130
+ // in the following code md5 is not used for security purposes
131
+ $ attributeGroupCode = md5 (strtolower ($ groupName ));
132
132
}
133
133
$ this ->setAttributeGroupCode ($ attributeGroupCode );
134
134
}
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ public function attributeGroupCodeDataProvider()
68
68
{
69
69
return [
70
70
['General Group ' , 'general-group ' ],
71
- ['configurable ' , sha1 ('configurable ' )],
72
- ['configurAble ' , sha1 ('configurable ' )],
73
- ['/// ' , sha1 ('/// ' )],
71
+ ['configurable ' , md5 ('configurable ' )],
72
+ ['configurAble ' , md5 ('configurable ' )],
73
+ ['/// ' , md5 ('/// ' )],
74
74
];
75
75
}
76
76
}
You can’t perform that action at this time.
0 commit comments