From 304af9d8ef093e619bdb030dbdd119de942e7c08 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 17 Nov 2010 19:12:15 -0500 Subject: Some CRL fixes. --- usr/local/www/system_crlmanager.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usr') diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php index 9a78cb6..b5dc26d 100644 --- a/usr/local/www/system_crlmanager.php +++ b/usr/local/www/system_crlmanager.php @@ -214,16 +214,18 @@ if ($_POST) { if (!$input_errors) { $result = false; - $crl = array(); - $crl['refid'] = uniqid(); - if ($thiscrl) + if ($thiscrl) { $crl =& $thiscrl; + } else { + $crl = array(); + $crl['refid'] = uniqid(); + } $crl['descr'] = $pconfig['descr']; $crl['caref'] = $pconfig['caref']; if ($pconfig['method'] == "existing") { - $crl['text'] == base64_encode($pconfig['crltext']); + $crl['text'] = base64_encode($pconfig['crltext']); } if ($pconfig['method'] == "internal") { @@ -235,7 +237,7 @@ if ($_POST) { if (!$thiscrl) $a_crl[] = $crl; - write_config("Saved CRL {$crl['caref']}"); + write_config("Saved CRL {$crl['descr']}"); pfSenseHeader("system_crlmanager.php"); } -- cgit v1.1