summaryrefslogtreecommitdiffstats
path: root/etc/inc/certs.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/certs.inc')
-rw-r--r--etc/inc/certs.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc
index 33aac66..5e01a50 100644
--- a/etc/inc/certs.inc
+++ b/etc/inc/certs.inc
@@ -308,10 +308,11 @@ function cert_get_subject($str_crt, $decode = true) {
return "unknown";
foreach ($components as $a => $v) {
- if (!strlen($subject))
- $subject = "{$a}={$v}";
+ if (is_array($v))
+ foreach ($v as $w)
+ $subject = "{$a}={$w}" . (strlen($subject)) ? ", {$subject}" : "" ;
else
- $subject = "{$a}={$v}, {$subject}";
+ $subject = "{$a}={$v}" . (strlen($subject)) ? ", {$subject}" : "" ;
}
return $subject;
OpenPOWER on IntegriCloud