Skip to content

Commit

Permalink
Encoding for haproxy_listeners.php. Fixes #9335
Browse files Browse the repository at this point in the history
Encode desc and table_actionsaclN before output.
  • Loading branch information
jim-p committed Feb 18, 2019
1 parent 2957ba8 commit 3b40366
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion net/pfSense-pkg-haproxy-devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-haproxy-devel
PORTVERSION= 0.59
PORTREVISION= 16
PORTREVISION= 17
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function sort_sharedfrontends(&$a, &$b) {
<?=$frontend['name'];?>
</td>
<td>
<?=$frontend['desc'];?>
<?=htmlspecialchars($frontend['desc']);?>
</td>
<td>
<?php
Expand Down Expand Up @@ -412,7 +412,7 @@ function sort_sharedfrontends(&$a, &$b) {
echo "<div title='{$hint}'>";
echo "<a href='haproxy_pool_edit.php?id={$backend}'>{$backend}</a>";
if (!empty($actionitem['acl'])) {
echo "&nbsp;if({$actionitem['acl']})";
echo "&nbsp;if(" . htmlspecialchars($actionitem['acl']) . ")";
}
echo "<br/></div>";
}
Expand Down
2 changes: 1 addition & 1 deletion net/pfSense-pkg-haproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-haproxy
PORTVERSION= 0.59
PORTREVISION= 15
PORTREVISION= 16
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function sort_sharedfrontends(&$a, &$b) {
<?=$frontend['name'];?>
</td>
<td>
<?=$frontend['desc'];?>
<?=htmlspecialchars($frontend['desc']);?>
</td>
<td>
<?php
Expand Down Expand Up @@ -412,7 +412,7 @@ function sort_sharedfrontends(&$a, &$b) {
echo "<div title='{$hint}'>";
echo "<a href='haproxy_pool_edit.php?id={$backend}'>{$backend}</a>";
if (!empty($actionitem['acl'])) {
echo "&nbsp;if({$actionitem['acl']})";
echo "&nbsp;if(" . htmlspecialchars($actionitem['acl']) . ")";
}
echo "<br/></div>";
}
Expand Down

0 comments on commit 3b40366

Please sign in to comment.