Skip to content

Commit

Permalink
ACME 0.5.8
Browse files Browse the repository at this point in the history
* Fix encoding for cert/key fields in output. Fixes #9554
* Fix tab links for non-admin users. Fixes #9553
  • Loading branch information
jim-p committed May 28, 2019
1 parent b7342d7 commit 5049095
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions security/pfSense-pkg-acme/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$ # $FreeBSD$


PORTNAME= pfSense-pkg-acme PORTNAME= pfSense-pkg-acme
PORTVERSION= 0.5.7 PORTVERSION= 0.5.8
PORTREVISION= 1
CATEGORIES= security CATEGORIES= security
MASTER_SITES= # empty MASTER_SITES= # empty
DISTFILES= # empty DISTFILES= # empty
Expand Down
Expand Up @@ -11,9 +11,9 @@ namespace pfsense_pkg\acme;
global $acme_tab_array; global $acme_tab_array;


$acme_tab_array['acme'] = array(); $acme_tab_array['acme'] = array();
$acme_tab_array['acme']['settings'] = Array('name' => "General settings", 'url' => "acme_generalsettings.php"); $acme_tab_array['acme']['settings'] = Array('name' => "General settings", 'url' => "/acme/acme_generalsettings.php");
$acme_tab_array['acme']['certificates'] = Array('name' => "Certificates", 'url' => "acme_certificates.php"); $acme_tab_array['acme']['certificates'] = Array('name' => "Certificates", 'url' => "/acme/acme_certificates.php");
$acme_tab_array['acme']['accountkeys'] = Array('name' => "Account keys", 'url' => "acme_accountkeys.php"); $acme_tab_array['acme']['accountkeys'] = Array('name' => "Account keys", 'url' => "/acme/acme_accountkeys.php");


function display_top_tabs_active($top_tabs, $activetab) { function display_top_tabs_active($top_tabs, $activetab) {
$tab_array = array(); $tab_array = array();
Expand Down
Expand Up @@ -158,21 +158,21 @@
<tbody class="user-entries"> <tbody class="user-entries">
<?php <?php
foreach ($a_accountkeys as $accountkey) { foreach ($a_accountkeys as $accountkey) {
$accountname = $accountkey['name']; $accountname = htmlspecialchars($accountkey['name']);
?> ?>
<tr id="fr<?=$accountname;?>" <?=$display?> onClick="fr_toggle('<?=$accountname;?>')" ondblclick="document.location='acme_accountkeys_edit.php?id=<?=$accountname;?>';"> <tr id="fr<?=$accountname;?>" <?=$display?> onClick="fr_toggle('<?=$accountname;?>')" ondblclick="document.location='acme_accountkeys_edit.php?id=<?=$accountname;?>';">
<td> <td>
<input type="checkbox" id="frc<?=$accountname;?>" onClick="fr_toggle('<?=$accountname;?>')" name="rule[]" value="<?=$accountname;?>"/> <input type="checkbox" id="frc<?=$accountname;?>" onClick="fr_toggle('<?=$accountname;?>')" name="rule[]" value="<?=$accountname;?>"/>
<a class="fa fa-anchor" id="Xmove_<?=$accountname?>" title="<?=gettext("Move checked entries to here")?>"></a> <a class="fa fa-anchor" id="Xmove_<?=$accountname?>" title="<?=gettext("Move checked entries to here")?>"></a>
</td> </td>
<td> <td>
<?=$accountkey['name'];?> <?=$accountname;?>
</td> </td>
<td> <td>
<?=$accountkey['desc'];?> <?=htmlspecialchars($accountkey['desc']);?>
</td> </td>
<td> <td>
<?=$accountkey['acmeserver'];?> <?=htmlspecialchars($accountkey['acmeserver']);?>
</td> </td>
<td class="action-icons"> <td class="action-icons">
<button style="display: none;" class="btn btn-default btn-xs" type="submit" id="move_<?=$accountname?>" name="move_<?=$accountname?>" value="move_<?=$accountname?>"></button> <button style="display: none;" class="btn btn-default btn-xs" type="submit" id="move_<?=$accountname?>" name="move_<?=$accountname?>" value="move_<?=$accountname?>"></button>
Expand Down
Expand Up @@ -242,10 +242,10 @@
<?=$certificate['name'];?> <?=$certificate['name'];?>
</td> </td>
<td> <td>
<?=$certificate['desc'];?> <?=htmlspecialchars($certificate['desc']);?>
</td> </td>
<td> <td>
<?=$certificate['acmeaccount'];?> <?=htmlspecialchars($certificate['acmeaccount']);?>
</td> </td>
<td style="white-space: nowrap"> <td style="white-space: nowrap">
<?=date('r', $certificate['lastrenewal']);?> <?=date('r', $certificate['lastrenewal']);?>
Expand Down

0 comments on commit 5049095

Please sign in to comment.