ASN1: fix for malformed ASN1 strings

This commit is contained in:
terrafrost 2020-03-02 10:18:30 -06:00
parent 935fa407e3
commit fc0832ae99

View File

@ -577,6 +577,10 @@ class File_ASN1
*/
function asn1map($decoded, $mapping, $special = array())
{
if (!is_array($decoded)) {
return false;
}
if (isset($mapping['explicit']) && is_array($decoded['content'])) {
$decoded = $decoded['content'][0];
}