summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-02-03 04:38:19 +0000
committerChris Buechler <cmb@pfsense.org>2008-02-03 04:38:19 +0000
commit33b755d1684b73b3f4dc98a5a48c556764734be1 (patch)
treeec46dc3fc9d28929013e22dbb72a39864a1d0654 /usr/local
parent682a9c512d04c54d627d4e3ea1bd2e7288ef9731 (diff)
downloadpfsense-33b755d1684b73b3f4dc98a5a48c556764734be1.zip
pfsense-33b755d1684b73b3f4dc98a5a48c556764734be1.tar.gz
shorten description field to prevent creating rulesets that won't load.
Ticket #1619
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 6e276aa..c883ac9 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -225,7 +225,7 @@ if ($_POST) {
* Our firewall filter description may be no longer than
* 63 characters, so don't let it be.
*/
- $filterent['descr'] = substr("NAT " . $_POST['descr'], 0, 63);
+ $filterent['descr'] = substr("NAT " . $_POST['descr'], 0, 59);
$config['filter']['rule'][] = $filterent;
OpenPOWER on IntegriCloud