summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-20 10:35:43 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-20 10:36:01 -0300
commit052dfa9346e716d63fbd85735c4a8784e6ed07e2 (patch)
tree19fd3914dc7055c0945f0b03e22fc6067a80d2f7
parentdf203cb81d8427096807706a72e577062d16189a (diff)
downloadpfsense-052dfa9346e716d63fbd85735c4a8784e6ed07e2.zip
pfsense-052dfa9346e716d63fbd85735c4a8784e6ed07e2.tar.gz
Remove extra data after space and fix pf rule syntax. It should fix #3688
-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 e0cff7e..3821b95 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2399,7 +2399,7 @@ function filter_generate_user_rule($rule) {
case 'cs5': $aline['dscp'] = " dscp 40 "; break;
case 'cs6': $aline['dscp'] = " dscp 48 "; break;
case 'cs7': $aline['dscp'] = " dscp 56 "; break;
- default: $aline['dscp'] = " dscp " . $rule['dscp'] . " "; break;
+ default: $aline['dscp'] = " dscp " . preg_replace('/\s.*$/', '', $rule['dscp']) . " "; break;
}
}
if (!empty($rule['vlanprio']) && ($rule['vlanprio'] != "none"))
OpenPOWER on IntegriCloud