Skip to content

Commit

Permalink
fix PHP 8.0 TypeError: htmlspecialchars(): Argument #1 ($string) must…
Browse files Browse the repository at this point in the history
… be of type string, array given
  • Loading branch information
ralfbecker authored and yunosh committed Nov 17, 2022
1 parent dbc4a7d commit e308ba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Horde/Crypt/Smime.php
Expand Up @@ -553,6 +553,7 @@ public function certToHTML($cert)
'<strong>' . Horde_Crypt_Translation::t("Issuer") . ':</strong>';

foreach ($details['issuer'] as $key => $value) {
if (is_array($value)) $value = implode(', ', $value);
$text .= sprintf(
"\n&nbsp;&nbsp;%s: %s",
htmlspecialchars(
Expand Down

0 comments on commit e308ba8

Please sign in to comment.