diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-12-03 12:59:30 -0800 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-12-03 12:59:30 -0800 |
commit | 7a1c41798ccc8bd5ae8c8b6b6989318590ba04d3 (patch) | |
tree | 3244f7e2f9ffb491c24fb3c42452c87d7a3269c6 /config/haproxy-devel/haproxy_utils.inc | |
parent | c78e013f003042cfe878babddeb20925a7402450 (diff) | |
parent | 6dd91cb086f926c9ddea2a188141bbbd7f071bed (diff) | |
download | pfsense-packages-7a1c41798ccc8bd5ae8c8b6b6989318590ba04d3.tar.gz pfsense-packages-7a1c41798ccc8bd5ae8c8b6b6989318590ba04d3.tar.bz2 pfsense-packages-7a1c41798ccc8bd5ae8c8b6b6989318590ba04d3.zip |
Merge pull request #557 from PiBa-NL/haproxy_spellcheck
haproxy-devel, -made more consistent use of frontend/backend text
Diffstat (limited to 'config/haproxy-devel/haproxy_utils.inc')
-rw-r--r-- | config/haproxy-devel/haproxy_utils.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_utils.inc b/config/haproxy-devel/haproxy_utils.inc index 940c816f..f4df2433 100644 --- a/config/haproxy-devel/haproxy_utils.inc +++ b/config/haproxy-devel/haproxy_utils.inc @@ -221,7 +221,8 @@ function haproxy_recalculate_certifcate_chain(){ } } if ($items_recalculated > 0) - write_config("Recalculated $items_recalculated certificate chains."); + write_config("Services: HAProxy: Recalculated $items_recalculated certificate chains."); + return $items_recalculated; } function phparray_to_javascriptarray_recursive($nestID, $path, $items, $nodeName, $includeitems) { @@ -256,7 +257,8 @@ function echo_html_select($name, $keyvaluelist, $selected, $listEmptyMessage="", echo "<select name=\"$name\" id=\"$name\" class=\"formselect\"$onchangeEvent>"; foreach($keyvaluelist as $key => $desc){ $selectedhtml = $key == $selected ? "selected" : ""; - echo "<option value=\"{$key}\" {$selectedhtml}>{$desc['name']}</option>"; + $name = htmlspecialchars($desc['name']); + echo "<option value=\"{$key}\" {$selectedhtml}>{$name}</option>"; } echo "</select>"; } else { |