diff options
author | Ermal <eri@pfsense.org> | 2010-08-20 12:03:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-20 12:03:49 +0000 |
commit | fe24301fcbbd947b538e6b9b29e2f4f5152ecff9 (patch) | |
tree | fcd684cafc0f0b33f0fa99518f90990f9050b039 | |
parent | 667b2b600d459eea173ed2d6976611c7ef74eaa8 (diff) | |
download | pfsense-fe24301fcbbd947b538e6b9b29e2f4f5152ecff9.zip pfsense-fe24301fcbbd947b538e6b9b29e2f4f5152ecff9.tar.gz |
Gett full list of interfaces when verifying description.
-rwxr-xr-x | usr/local/www/interfaces.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index bc8cfec..424c020 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -339,8 +339,10 @@ if ($_POST) { unset($input_errors); $pconfig = $_POST; conf_mount_rw(); + /* filter out spaces from descriptions */ $_POST['descr'] = remove_bad_chars($_POST['descr']); + /* okay first of all, cause we are just hiding the PPPoE HTML * fields releated to PPPoE resets, we are going to unset $_POST * vars, if the reset feature should not be used. Otherwise the @@ -355,7 +357,7 @@ if ($_POST) { unset($_POST['pppoe_pr_preset_val']); } /* optional interface if list */ - $iflist = get_configured_interface_with_descr(); + $iflist = get_configured_interface_with_descr(false, true); /* description unique? */ foreach ($iflist as $ifent => $ifdescr) { if ($if != $ifent && $ifdescr == $_POST['descr']) |