- Affected version
- 2.2.6
While the entity validates the permission name,
While this would most likely occur when importing potentially hand editor .json files, it would be nice if it gave a nicer error than;
or php 8+;
getEntityForImport
does not validate the name is in the expected format (ie contains a -
character);
PHP:
protected function getEntityForImport($name, $addOnId, $json, array $options)
{
list($groupId, $permissionId) = explode('-', $name);
While this would most likely occur when importing potentially hand editor .json files, it would be nice if it gave a nicer error than;
Code:
Notice: Undefined offset: 1 ...
Code:
Warning: Undefined array key 1 ...