diff options
author | jim-p <jimp@pfsense.org> | 2010-10-19 12:39:01 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-19 12:39:01 -0400 |
commit | e988813dd2e6ab104660969c80395d1dc7877e3e (patch) | |
tree | f22632ef53eaca37f28d5f18ac2097c5aa30ee94 /usr/local/www/load_balancer_relay_protocol_edit.php | |
parent | c4f5508496be6237334d1006cb029bb079747d45 (diff) | |
download | pfsense-e988813dd2e6ab104660969c80395d1dc7877e3e.zip pfsense-e988813dd2e6ab104660969c80395d1dc7877e3e.tar.gz |
desc to descr in Load Balancer config, so they gain CDATA protection and standardize field names. Ticket #320.
Diffstat (limited to 'usr/local/www/load_balancer_relay_protocol_edit.php')
-rwxr-xr-x | usr/local/www/load_balancer_relay_protocol_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/load_balancer_relay_protocol_edit.php b/usr/local/www/load_balancer_relay_protocol_edit.php index 95e07ab..ecd8ce4 100755 --- a/usr/local/www/load_balancer_relay_protocol_edit.php +++ b/usr/local/www/load_balancer_relay_protocol_edit.php @@ -54,7 +54,7 @@ else if (isset($id) && $a_protocol[$id]) { $pconfig = $a_protocol[$id]; $pconfig['type'] = $a_protocol[$id]['type']; - $pconfig['desc'] = $a_protocol[$id]['desc']; + $pconfig['descr'] = $a_protocol[$id]['descr']; $pconfig['lbaction'] = array(); $pconfig['options'] = $a_protocol[$id]['options']; } else { @@ -75,7 +75,7 @@ if ($_POST) { /* input validation */ - $reqdfields = explode(" ", "name type desc"); + $reqdfields = explode(" ", "name type descr"); $reqdfieldsn = array(gettext("Name"),gettext("Type"),gettext("Description")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); @@ -103,7 +103,7 @@ if ($_POST) { update_if_changed(gettext("name"), $protent['name'], $pconfig['name']); update_if_changed(gettext("type"), $protent['type'], $pconfig['type']); - update_if_changed(gettext("description"), $protent['desc'], $pconfig['desc']); + update_if_changed(gettext("description"), $protent['descr'], $pconfig['descr']); update_if_changed(gettext("type"), $protent['type'], $pconfig['type']); update_if_changed(gettext("action"), $protent['lbaction'], $pconfig['lbaction']); @@ -214,7 +214,7 @@ document.observe('dom:loaded', function(){ <tr align="left"> <td width="22%" valign="top" class="vncellreq"><?=gettext("Description"); ?></td> <td width="78%" class="vtable" colspan="2"> - <input name="desc" type="text" <?if(isset($pconfig['desc'])) echo "value=\"{$pconfig['desc']}\"";?>size="64"> + <input name="descr" type="text" <?if(isset($pconfig['descr'])) echo "value=\"{$pconfig['descr']}\"";?>size="64"> </td> </tr> <tr> |