diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-18 11:44:04 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-18 11:44:04 +0000 |
commit | 20989f5a5a508e8e9960c0f8d46e3df50857bae5 (patch) | |
tree | 6116a7bc6ff6ca058a9589064631a872104eec62 /usr | |
parent | e067306d8809ff0dc1943cfe19ef4d6f18186142 (diff) | |
download | pfsense-20989f5a5a508e8e9960c0f8d46e3df50857bae5.zip pfsense-20989f5a5a508e8e9960c0f8d46e3df50857bae5.tar.gz |
Ticket #288. Fix some sanitation checking to allow propper editing of entries.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_igmpproxy_edit.php | 8 |
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']; |