summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2019-02-12 10:32:21 -0500
committerjim-p <jimp@netgate.com>2019-02-12 10:32:35 -0500
commitb473b576ef5e6b94a767d820adc46195ade7daee (patch)
treeef54b704fc348c2f62325ed9f2a618b37d082c7b
parent9524668774c79812df62a6bfd02b68e0f9a0f955 (diff)
downloadpfsense-b473b576ef5e6b94a767d820adc46195ade7daee.zip
pfsense-b473b576ef5e6b94a767d820adc46195ade7daee.tar.gz
Fix limiter selection validation.
(cherry picked from commit d0e9c310708fe7be6de86fe082f57e1fc27ce143)
-rw-r--r--src/usr/local/www/firewall_rules_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 7ca3624..b31f508 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -822,10 +822,10 @@ if ($_POST['save']) {
$input_errors[] = gettext("Invalid Default Queue.");
}
- if ($_POST['dnpipe'] && !in_array($_POST['dnpipe'], $dnqlist)) {
+ if ($_POST['dnpipe'] && !array_key_exists($_POST['dnpipe'], $dnqlist)) {
$input_errors[] = gettext("Invalid In Pipe.");
}
- if ($_POST['pdnpipe'] && !in_array($_POST['pdnpipe'], $dnqlist)) {
+ if ($_POST['pdnpipe'] && !array_key_exists($_POST['pdnpipe'], $dnqlist)) {
$input_errors[] = gettext("Invalid Out Pipe.");
}
OpenPOWER on IntegriCloud