summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-10 14:20:57 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-10 14:20:57 -0300
commitf2c86031649e5f199ef10e848593ba38429694da (patch)
tree35ca1d260198388407098b67d4a56012ea7b4f65
parentff3da5dba67c64514808e86165e92362f3ff8b33 (diff)
downloadpfsense-f2c86031649e5f199ef10e848593ba38429694da.zip
pfsense-f2c86031649e5f199ef10e848593ba38429694da.tar.gz
Be more precise to match members of a bridge interface, it should fix #3637
-rw-r--r--usr/local/www/interfaces_bridge_edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php
index 0a4502c..942e792 100644
--- a/usr/local/www/interfaces_bridge_edit.php
+++ b/usr/local/www/interfaces_bridge_edit.php
@@ -271,12 +271,14 @@ function show_source_port_range() {
<td width="78%" class="vtable">
<select name="members[]" multiple="multiple" class="formselect" size="3">
<?php
+ $members_array = explode(',', $pconfig['members']);
foreach ($ifacelist as $ifn => $ifinfo) {
echo "<option value=\"{$ifn}\"";
- if (stristr($pconfig['members'], $ifn))
+ if (in_array($ifn, $members_array))
echo " selected=\"selected\"";
echo ">{$ifinfo}</option>";
}
+ unset($members_array);
?>
</select>
<br />
OpenPOWER on IntegriCloud