mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-03 12:28:30 +00:00
ASN1: fix for malformed ASN1 strings
This commit is contained in:
parent
935fa407e3
commit
fc0832ae99
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user