From 1b9c59947665101420a8e696eaa280f37b61532f Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 5 May 2014 17:38:33 -0500 Subject: [PATCH] ASN1: let strings in as well --- phpseclib/File/ASN1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index 11e48541..2774e7e8 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -950,7 +950,7 @@ class File_ASN1 case FILE_ASN1_TYPE_INTEGER: case FILE_ASN1_TYPE_ENUMERATED: if (!isset($mapping['mapping'])) { - if (is_int($source)) { + if (is_numeric($source)) { $source = new Math_BigInteger($source); } $value = $source->toBytes(true);