summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_igmpproxy_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-18 11:44:04 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-18 11:44:04 +0000
commit20989f5a5a508e8e9960c0f8d46e3df50857bae5 (patch)
tree6116a7bc6ff6ca058a9589064631a872104eec62 /usr/local/www/services_igmpproxy_edit.php
parente067306d8809ff0dc1943cfe19ef4d6f18186142 (diff)
downloadpfsense-20989f5a5a508e8e9960c0f8d46e3df50857bae5.zip
pfsense-20989f5a5a508e8e9960c0f8d46e3df50857bae5.tar.gz
Ticket #288. Fix some sanitation checking to allow propper editing of entries.
Diffstat (limited to 'usr/local/www/services_igmpproxy_edit.php')
-rwxr-xr-xusr/local/www/services_igmpproxy_edit.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/services_igmpproxy_edit.php b/usr/local/www/services_igmpproxy_edit.php
index e97869b..a6f2571 100755
--- a/usr/local/www/services_igmpproxy_edit.php
+++ b/usr/local/www/services_igmpproxy_edit.php
@@ -71,10 +71,14 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
- if ($_POST['type'] == "upstream")
- foreach ($a_igmpproxy as $proxyentry)
+ if ($_POST['type'] == "upstream") {
+ foreach ($a_igmpproxy as $pid => $proxyentry) {
+ if (isset($id) && $id == $pid)
+ continue;
if ($proxyentry['type'] == "upstream" && $proxyentry['ifname'] != $_POST['interface'])
$input_errors[] = "Only one 'upstream' interface can be configured.";
+ }
+ }
$igmpentry = array();
$igmpentry['ifname'] = $_POST['ifname'];
$igmpentry['threshold'] = $_POST['threshold'];
OpenPOWER on IntegriCloud