diff options
author | jim-p <jimp@pfsense.org> | 2011-01-12 13:04:41 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-01-12 13:06:13 -0500 |
commit | 3b83b51ad2dd7d1ed3ecb0faab251813b3678a8e (patch) | |
tree | 60ce5c5b7c12513fe8014e69891507dbda104c91 | |
parent | a8c3598046fe25494801bb77490c36c2644a650a (diff) | |
download | pfsense-3b83b51ad2dd7d1ed3ecb0faab251813b3678a8e.zip pfsense-3b83b51ad2dd7d1ed3ecb0faab251813b3678a8e.tar.gz |
Only copy 52 chars of a user descr to the pf rule. When added to the "USER_RULE: " prefix (11 chars) we hit the 63 char limit. Fixes #1187
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 07cc80f..e268a64 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1544,7 +1544,7 @@ function filter_generate_user_rule_arr($rule) { $ret['rule'] = $line; $ret['interface'] = $rule['interface']; if($rule['descr'] != "" and $line != "") - $ret['descr'] = "label \"USER_RULE: " . str_replace('"', '', substr($rule['descr'], 0, 63)) . "\""; + $ret['descr'] = "label \"USER_RULE: " . str_replace('"', '', substr($rule['descr'], 0, 52)) . "\""; else $ret['descr'] = "label \"USER_RULE\""; |