diff options
author | jim-p <jimp@pfsense.org> | 2010-10-19 12:00:09 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-19 12:00:09 -0400 |
commit | 15864861753ef1cc35f73af738ddb776571b74e5 (patch) | |
tree | 3bfa388a51a879b11e4020e44d9a00d963b82175 /usr/local | |
parent | 8a98ce811ca6cea8d0c70082323b9a188e75b7b7 (diff) | |
download | pfsense-15864861753ef1cc35f73af738ddb776571b74e5.zip pfsense-15864861753ef1cc35f73af738ddb776571b74e5.tar.gz |
Change the description field on sysctl tunables to be 'descr' and not 'desc' so they will gain CDATA protection. Ticket #320
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_advanced_sysctl.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/system_advanced_sysctl.php b/usr/local/www/system_advanced_sysctl.php index 0a27bdd..4cd279a 100644 --- a/usr/local/www/system_advanced_sysctl.php +++ b/usr/local/www/system_advanced_sysctl.php @@ -62,7 +62,7 @@ if ($act == "edit") { if ($a_tunable[$id]) { $pconfig['tunable'] = $a_tunable[$id]['tunable']; $pconfig['value'] = $a_tunable[$id]['value']; - $pconfig['desc'] = $a_tunable[$id]['desc']; + $pconfig['descr'] = $a_tunable[$id]['descr']; } } @@ -106,7 +106,7 @@ if ($_POST) { $tunableent['tunable'] = $_POST['tunable']; $tunableent['value'] = $_POST['value']; - $tunableent['desc'] = $_POST['desc']; + $tunableent['descr'] = $_POST['descr']; if (isset($id) && $a_tunable[$id]) $a_tunable[$id] = $tunableent; @@ -180,7 +180,7 @@ include("head.inc"); <?php echo $tunable['tunable']; ?> </td> <td class="listr" align="left" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';"> - <?php echo $tunable['desc']; ?> + <?php echo $tunable['descr']; ?> </td> <td class="listr" align="left" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';"> <?php echo $tunable['value']; ?> @@ -244,7 +244,7 @@ include("head.inc"); <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Description"); ?></td> <td width="78%" class="vtable"> - <textarea rows="7" cols="50" name="desc"><?php echo $pconfig['desc']; ?></textarea> + <textarea rows="7" cols="50" name="descr"><?php echo $pconfig['descr']; ?></textarea> </td> </tr> <tr> |