From fe24301fcbbd947b538e6b9b29e2f4f5152ecff9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 20 Aug 2010 12:03:49 +0000 Subject: Gett full list of interfaces when verifying description. --- usr/local/www/interfaces.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']) -- cgit v1.1