summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-11-25 12:40:07 -0500
committerjim-p <jimp@pfsense.org>2013-11-25 12:40:07 -0500
commit48f1333bfd64b078016135ae089906d4e03deb0e (patch)
tree1d518a9b05ec1099cd5fa998fc4abfafd6c48bcd /usr
parent82d1a33e4a0a9e1988277fcd4f9401355a9b4fee (diff)
downloadpfsense-48f1333bfd64b078016135ae089906d4e03deb0e.zip
pfsense-48f1333bfd64b078016135ae089906d4e03deb0e.tar.gz
Allow an "empty" CRL to be exported, since this is still a valid action.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_crlmanager.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php
index 5d60318..3b6bb5f 100644
--- a/usr/local/www/system_crlmanager.php
+++ b/usr/local/www/system_crlmanager.php
@@ -107,6 +107,7 @@ if ($act == "new") {
}
if ($act == "exp") {
+ crl_update($thiscrl);
$exp_name = urlencode("{$thiscrl['descr']}.crl");
$exp_data = base64_decode($thiscrl['text']);
$exp_size = strlen($exp_data);
@@ -588,11 +589,9 @@ function method_change() {
<td class="listr"><?php echo ($internal) ? count($tmpcrl['cert']) : "Unknown (imported)"; ?></td>
<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td>
<td valign="middle" class="list nowrap">
- <?php if (!$internal || count($tmpcrl['cert'])): ?>
<a href="system_crlmanager.php?act=exp&amp;id=<?=$tmpcrl['refid'];?>">
<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" width="17" height="17" border="0" />
</a>
- <?php endif; ?>
<?php if ($internal): ?>
<a href="system_crlmanager.php?act=edit&amp;id=<?=$tmpcrl['refid'];?>">
<img src="/themes/<?= $g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" alt="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>" width="17" height="17" border="0" />
OpenPOWER on IntegriCloud