Revision 04e1a5d3
Added by Jim Pingle over 6 years ago
src/usr/local/www/system_certmanager.php | ||
---|---|---|
931 | 931 |
|
932 | 932 |
$existCerts = array(); |
933 | 933 |
|
934 |
foreach ($config['cert'] as $cert) { |
|
934 |
foreach ($config['cert'] as $cert) { |
|
935 |
if (!is_array($cert) || empty($cert)) { |
|
936 |
continue; |
|
937 |
} |
|
935 | 938 |
if (is_array($config['system']['user'][$userid]['cert'])) { // Could be MIA! |
936 | 939 |
if (isset($userid) && in_array($cert['refid'], $config['system']['user'][$userid]['cert'])) { |
937 | 940 |
continue; |
... | ... | |
1128 | 1131 |
$certificates_used_by_packages = pkg_call_plugins('plugin_certificates', $pluginparams); |
1129 | 1132 |
$i = 0; |
1130 | 1133 |
foreach ($a_cert as $i => $cert): |
1134 |
if (!is_array($cert) || empty($cert)) { |
|
1135 |
continue; |
|
1136 |
} |
|
1131 | 1137 |
$name = htmlspecialchars($cert['descr']); |
1132 | 1138 |
$sans = array(); |
1133 | 1139 |
if ($cert['crt']) { |
Also available in: Unified diff
Improve handling of empty cert tags. Fixes #9099
(cherry picked from commit ca4456b95c53e89cf6b428a999ae15367b753073)