summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-21 20:29:16 +0000
committerErmal <eri@pfsense.org>2011-03-21 20:42:00 +0000
commit7efd99722a4334586655f70132b2e86cd1e2b8c0 (patch)
tree4ab79dadd77c954db30673879f96756fb21b5249 /etc
parent71edee5e5780231dba9f2ec9290b0dff37d4be2f (diff)
downloadpfsense-7efd99722a4334586655f70132b2e86cd1e2b8c0.zip
pfsense-7efd99722a4334586655f70132b2e86cd1e2b8c0.tar.gz
Ticket #1374. Actually test the right field name.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/shaper.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index c56543a..4b24f9b 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -2770,8 +2770,10 @@ class dummynet_class {
$reqdfieldsn[] = "Bandwidth";
$reqdfields[] = "bandwidthtype";
$reqdfieldsn[] = "Bandwidthtype";
- $reqdfields[] = "name";
- $reqdfieldsn[] = "Name";
+ if (!empty($data['newname'])) {
+ $reqdfields[] = "newname";
+ $reqdfieldsn[] = "Name";
+ }
shaper_do_input_validation($data, $reqdfields, $reqdfieldsn, $input_errors);
OpenPOWER on IntegriCloud