summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-01-11 18:40:09 +0545
committerRenato Botelho <garga@FreeBSD.org>2015-01-11 11:03:51 -0200
commitfc03ca011259d829a42ce47353cb5ced84c3b345 (patch)
treea70e57e2b0e64886595794e490d760c60acb3182 /usr
parent31cf5a9315f39fba7d0baad26ec992bf63e556d3 (diff)
downloadpfsense-fc03ca011259d829a42ce47353cb5ced84c3b345.zip
pfsense-fc03ca011259d829a42ce47353cb5ced84c3b345.tar.gz
Fix POST typo in interfaces_assign.php
Obviously a typo. But this section is inside: if (isset($_POST['add_x']) && isset($_POST['if_add'])) { and I cannot find where 'add_x' is ever sent here, so I do not see how this whole code section is ever executed (and that will be why this typo bug has no symptoms). What is the history here? Can the whole block of code be removed? The code normally executed is the section for 'Submit' lower down.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/interfaces_assign.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 8e23154..afb8e9e 100644
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -196,7 +196,7 @@ if (isset($_POST['add_x']) && isset($_POST['if_add'])) {
/* Be sure this port is not being used */
$portused = false;
foreach ($config['interfaces'] as $ifname => $ifdata) {
- if ($ifdata['if'] == $_PORT['if_add']) {
+ if ($ifdata['if'] == $_POST['if_add']) {
$portused = true;
break;
}
OpenPOWER on IntegriCloud