From e686c095b63eadfa3ed60b1cc4c01c7e17d30b77 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 1 Mar 2015 12:05:49 -0600 Subject: [PATCH] X509: always base64-encode extensions for which _getMapping returns a bool --- phpseclib/File/X509.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 36a6287b..eaba023e 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -1589,7 +1589,7 @@ class File_X509 } } } - } elseif ($map) { + } else { $value = base64_encode($value); } }