Revision fe24301f
Added by Ermal LUÇI almost 15 years ago
usr/local/www/interfaces.php | ||
---|---|---|
339 | 339 |
unset($input_errors); |
340 | 340 |
$pconfig = $_POST; |
341 | 341 |
conf_mount_rw(); |
342 |
|
|
342 | 343 |
/* filter out spaces from descriptions */ |
343 | 344 |
$_POST['descr'] = remove_bad_chars($_POST['descr']); |
345 |
|
|
344 | 346 |
/* okay first of all, cause we are just hiding the PPPoE HTML |
345 | 347 |
* fields releated to PPPoE resets, we are going to unset $_POST |
346 | 348 |
* vars, if the reset feature should not be used. Otherwise the |
... | ... | |
355 | 357 |
unset($_POST['pppoe_pr_preset_val']); |
356 | 358 |
} |
357 | 359 |
/* optional interface if list */ |
358 |
$iflist = get_configured_interface_with_descr(); |
|
360 |
$iflist = get_configured_interface_with_descr(false, true);
|
|
359 | 361 |
/* description unique? */ |
360 | 362 |
foreach ($iflist as $ifent => $ifdescr) { |
361 | 363 |
if ($if != $ifent && $ifdescr == $_POST['descr']) |
Also available in: Unified diff
Gett full list of interfaces when verifying description.