Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
31952088
Commit
31952088
authored
Feb 02, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: fix a crash report in LAGG edit page
parent
ebd02c22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
interfaces_lagg_edit.php
src/www/interfaces_lagg_edit.php
+6
-4
No files found.
src/www/interfaces_lagg_edit.php
View file @
31952088
...
...
@@ -109,9 +109,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
do_input_validation
(
$pconfig
,
$reqdfields
,
$reqdfieldsn
,
$input_errors
);
foreach
(
$pconfig
[
'members'
]
as
$member
)
{
if
(
!
does_interface_exist
(
$member
))
{
$input_errors
[]
=
gettext
(
"Interface supplied as member is invalid"
);
if
(
isset
(
$pconfig
[
'members'
]))
{
foreach
(
$pconfig
[
'members'
]
as
$member
)
{
if
(
!
does_interface_exist
(
$member
))
{
$input_errors
[]
=
sprintf
(
gettext
(
'Interface \'%s\' supplied as member does not exist'
),
$member
);
}
}
}
...
...
@@ -182,7 +184,7 @@ legacy_html_escape_form_data($pconfig);
<select
name=
"members[]"
multiple=
"multiple"
class=
"selectpicker"
>
<?php
foreach
(
available_interfaces
(
isset
(
$id
)
?
$id
:
null
)
as
$ifn
=>
$ifinfo
)
:?>
<
option
value
=
"<?=
$ifn
;?>"
<?=
in_array
(
$ifn
,
$pconfig
[
'members'
])
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<
option
value
=
"<?=
$ifn
;?>"
<?=
!
empty
(
$pconfig
[
'members'
])
&&
in_array
(
$ifn
,
$pconfig
[
'members'
])
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
$ifn
;
?>
(
<?=
$ifinfo
[
'mac'
]
?>
)
</option>
<?php
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment