System: Trust: Certificates - work in progress for https://github.com/opnsense/core/issues/7248

Make sure legacy page can still handle the new model data (csr always exists, but is empty when not used)
This commit is contained in:
Ad Schellevis 2024-03-02 17:55:33 +01:00
parent 94952145b3
commit dbd80f33f5

View File

@ -2095,7 +2095,7 @@ $( document ).ready(function() {
}
$subj = htmlspecialchars($subj);
}
if (isset($cert['csr'])) {
if (!empty($cert['csr'])) {
$subj = htmlspecialchars(csr_get_subject($cert['csr']));
$caname = "<em>" . gettext("external - signature pending") . "</em>";
}