Skip to content

Commit

Permalink
Fix fatal error "$string must be of type string, array given", happen…
Browse files Browse the repository at this point in the history
…s when subject fields in certs contains multiple-values.
  • Loading branch information
hnategh authored and yunosh committed Nov 17, 2022
1 parent 430e5b6 commit dbc4a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Crypt/Smime.php
Expand Up @@ -543,7 +543,7 @@ public function certToHTML($cert)
htmlspecialchars(
isset($fieldnames[$key]) ? $fieldnames[$key] : $key
),
htmlspecialchars($value)
htmlspecialchars(implode(', ', (array)$value))
);
}
$text .= "\n";
Expand Down

0 comments on commit dbc4a7d

Please sign in to comment.