diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2013-11-27 23:47:18 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2013-11-28 00:01:53 +0100 |
commit | 8884bc0fe5f8b274d9498f600ec5287acbe87694 (patch) | |
tree | decb479eb03aa22635b6b385bb571e046efbc6fc /config/haproxy-devel/haproxy_utils.inc | |
parent | cecde162c97ceb3309b29c98ef1648abcb0379bf (diff) | |
download | pfsense-packages-8884bc0fe5f8b274d9498f600ec5287acbe87694.tar.gz pfsense-packages-8884bc0fe5f8b274d9498f600ec5287acbe87694.tar.bz2 pfsense-packages-8884bc0fe5f8b274d9498f600ec5287acbe87694.zip |
haproxy-devel, -made more consistent use of frontend/backend text
-show hints on add/delete/clone buttons
-on frontend page show servers in a backend in a hint on the backend
-fix html character display in interface box.
-small 'config update' to externeladdress field for localhost/any/interfaceaddress to allow for a little easier update to latest version.
-trigger 'apply button' after recalculating certificate chain if a reference was changed.
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 { |