Skip to content

Commit 5049095

Browse files
committed
ACME 0.5.8
* Fix encoding for cert/key fields in output. Fixes #9554 * Fix tab links for non-admin users. Fixes #9553
1 parent b7342d7 commit 5049095

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

security/pfSense-pkg-acme/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# $FreeBSD$
22

33
PORTNAME= pfSense-pkg-acme
4-
PORTVERSION= 0.5.7
5-
PORTREVISION= 1
4+
PORTVERSION= 0.5.8
65
CATEGORIES= security
76
MASTER_SITES= # empty
87
DISTFILES= # empty

security/pfSense-pkg-acme/files/usr/local/pkg/acme/pkg_acme_tabs.inc

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace pfsense_pkg\acme;
1111
global $acme_tab_array;
1212

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

1818
function display_top_tabs_active($top_tabs, $activetab) {
1919
$tab_array = array();

security/pfSense-pkg-acme/files/usr/local/www/acme/acme_accountkeys.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,21 @@
158158
<tbody class="user-entries">
159159
<?php
160160
foreach ($a_accountkeys as $accountkey) {
161-
$accountname = $accountkey['name'];
161+
$accountname = htmlspecialchars($accountkey['name']);
162162
?>
163163
<tr id="fr<?=$accountname;?>" <?=$display?> onClick="fr_toggle('<?=$accountname;?>')" ondblclick="document.location='acme_accountkeys_edit.php?id=<?=$accountname;?>';">
164164
<td>
165165
<input type="checkbox" id="frc<?=$accountname;?>" onClick="fr_toggle('<?=$accountname;?>')" name="rule[]" value="<?=$accountname;?>"/>
166166
<a class="fa fa-anchor" id="Xmove_<?=$accountname?>" title="<?=gettext("Move checked entries to here")?>"></a>
167167
</td>
168168
<td>
169-
<?=$accountkey['name'];?>
169+
<?=$accountname;?>
170170
</td>
171171
<td>
172-
<?=$accountkey['desc'];?>
172+
<?=htmlspecialchars($accountkey['desc']);?>
173173
</td>
174174
<td>
175-
<?=$accountkey['acmeserver'];?>
175+
<?=htmlspecialchars($accountkey['acmeserver']);?>
176176
</td>
177177
<td class="action-icons">
178178
<button style="display: none;" class="btn btn-default btn-xs" type="submit" id="move_<?=$accountname?>" name="move_<?=$accountname?>" value="move_<?=$accountname?>"></button>

security/pfSense-pkg-acme/files/usr/local/www/acme/acme_certificates.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@
242242
<?=$certificate['name'];?>
243243
</td>
244244
<td>
245-
<?=$certificate['desc'];?>
245+
<?=htmlspecialchars($certificate['desc']);?>
246246
</td>
247247
<td>
248-
<?=$certificate['acmeaccount'];?>
248+
<?=htmlspecialchars($certificate['acmeaccount']);?>
249249
</td>
250250
<td style="white-space: nowrap">
251251
<?=date('r', $certificate['lastrenewal']);?>

0 commit comments

Comments
 (0)