aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-devel/haproxy_utils.inc')
-rw-r--r--config/haproxy-devel/haproxy_utils.inc6
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 {