summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-18 21:34:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-18 21:34:53 +0000
commit832ad79ef55b7be9dfb8bb3ef516160953de2169 (patch)
tree6ea2d195db5466cadb30cec2d1896112d856f126 /etc
parente2874a42c1c2c566aeddccfb94232d3ce055aa12 (diff)
downloadpfsense-832ad79ef55b7be9dfb8bb3ef516160953de2169.zip
pfsense-832ad79ef55b7be9dfb8bb3ef516160953de2169.tar.gz
Do not install blank rules.
Found by Slayback on the forum.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 7f8248e..bc0f82b 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2000,7 +2000,7 @@ EOD;
// label
if($rule['descr'] <> "" and $line <> "")
$line .= " label \"USER_RULE: {$rule['descr']}\" ";
- else
+ else if($line <> "")
$line .= " label \"USER_RULE\" ";
}
$line .= "\n";
OpenPOWER on IntegriCloud