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.

(cherry picked from commit 3b40366)
  • Loading branch information
jim-p committed Feb 18, 2019
1 parent 25c8753 commit 2dded47
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
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
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
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
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 2dded47

Please sign in to comment.