diff options
author | Phil Davis <phil.davis@inf.org> | 2015-01-11 18:40:09 +0545 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-01-11 11:03:51 -0200 |
commit | fc03ca011259d829a42ce47353cb5ced84c3b345 (patch) | |
tree | a70e57e2b0e64886595794e490d760c60acb3182 /usr/local/www | |
parent | 31cf5a9315f39fba7d0baad26ec992bf63e556d3 (diff) | |
download | pfsense-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/local/www')
-rw-r--r-- | usr/local/www/interfaces_assign.php | 2 |
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; } |