diff options
author | jim-p <jimp@pfsense.org> | 2010-11-17 19:12:15 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-17 19:12:15 -0500 |
commit | 304af9d8ef093e619bdb030dbdd119de942e7c08 (patch) | |
tree | 1b8d28207eabeba0ad90919efb710ca0530d22c4 | |
parent | fa15f4ae52fa80f26f29aec39ea4c5c9ee909534 (diff) | |
download | pfsense-304af9d8ef093e619bdb030dbdd119de942e7c08.zip pfsense-304af9d8ef093e619bdb030dbdd119de942e7c08.tar.gz |
Some CRL fixes.
-rw-r--r-- | usr/local/www/system_crlmanager.php | 12 |
1 files changed, 7 insertions, 5 deletions
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"); } |