From dbd80f33f5682ba72858eeb7c39a67a8f468f1a5 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 2 Mar 2024 17:55:33 +0100 Subject: [PATCH] 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) --- src/www/system_certmanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/system_certmanager.php b/src/www/system_certmanager.php index 050cdf0c3..bdfc79273 100644 --- a/src/www/system_certmanager.php +++ b/src/www/system_certmanager.php @@ -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 = "" . gettext("external - signature pending") . ""; }