summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-22 20:53:19 +0545
committerPhil Davis <phil.davis@inf.org>2017-02-22 20:53:19 +0545
commit680e15baef76a9c598d52d3f2b9ab498077336a8 (patch)
tree5c099d11d76703e417600edae1b3d8b64905015e /src/usr/local/www/firewall_rules_edit.php
parentaba748830d69b05df8c4a4cee370413c91c32273 (diff)
downloadpfsense-680e15baef76a9c598d52d3f2b9ab498077336a8.zip
pfsense-680e15baef76a9c598d52d3f2b9ab498077336a8.tar.gz
Fix 7294 keep full rule description
Signed-off-by: Phil Davis <phil.davis@inf.org>
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index e23048f..10c43ea 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -876,7 +876,8 @@ if ($_POST['save']) {
} else {
unset($filterent['log']);
}
- strncpy($filterent['descr'], $_POST['descr'], 52);
+
+ $filterent['descr'] = trim($_POST['descr']);
if ($_POST['gateway'] != "") {
$filterent['gateway'] = $_POST['gateway'];
@@ -1455,7 +1456,9 @@ $section->addInput(new Form_Input(
'Description',
'text',
$pconfig['descr']
-))->setHelp('A description may be entered here for administrative reference.');
+))->setHelp('A description may be entered here for administrative reference. ' .
+ 'A maximum of %s characters will be used in the ruleset and displayed in the firewall log.',
+ user_rule_descr_maxlen());
$btnadv = new Form_Button(
'btnadvopts',
OpenPOWER on IntegriCloud