From 6aab2ea3add017e7ac2795a6087936412e5e9942 Mon Sep 17 00:00:00 2001 From: Jean Cyr Date: Mon, 2 Sep 2013 14:01:22 -0400 Subject: [PATCH] shaper burst may be blank, but if not then must be numeric --- etc/inc/shaper.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index f5c6a2c744..4aa967cc56 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3047,6 +3047,8 @@ class dnpipe_class extends dummynet_class { if (!empty($data["bandwidth{$i}"])) { if (!is_numeric($data["bandwidth{$i}"])) $input_errors[] = sprintf(gettext("Bandwidth for schedule %s must be an integer."), $data["bwsched{$i}"]); + else if (($data["burst{$i}"] != "") && (!is_numeric($data["burst{$i}"]))) + $input_errors[] = sprintf(gettext("Burst for schedule %s must be an integer."), $data["bwsched{$i}"]); else $entries++; }