Skip to content
Permalink
Browse files

Encoding for haproxy_listeners.php. Fixes #9335

Encode desc and table_actionsaclN before output.
  • Loading branch information...
jim-p committed Feb 18, 2019
1 parent 2957ba8 commit 3b40366aca55910b224ecf49d3fdacc9ad6c04f5
@@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-haproxy-devel
PORTVERSION= 0.59
PORTREVISION= 16
PORTREVISION= 17
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
@@ -367,7 +367,7 @@ function sort_sharedfrontends(&$a, &$b) {
<?=$frontend['name'];?>
</td>
<td>
<?=$frontend['desc'];?>
<?=htmlspecialchars($frontend['desc']);?>
</td>
<td>
<?php
@@ -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>";
}
@@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-haproxy
PORTVERSION= 0.59
PORTREVISION= 15
PORTREVISION= 16
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
@@ -367,7 +367,7 @@ function sort_sharedfrontends(&$a, &$b) {
<?=$frontend['name'];?>
</td>
<td>
<?=$frontend['desc'];?>
<?=htmlspecialchars($frontend['desc']);?>
</td>
<td>
<?php
@@ -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>";
}

0 comments on commit 3b40366

Please sign in to comment.
You can’t perform that action at this time.