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
54ec6487
Commit
54ec6487
authored
Aug 22, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: escaping was off in wireless status page
parent
f52dd530
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
status_wireless.php
src/www/status_wireless.php
+5
-5
No files found.
src/www/status_wireless.php
View file @
54ec6487
...
@@ -33,19 +33,19 @@ require_once("interfaces.inc");
...
@@ -33,19 +33,19 @@ require_once("interfaces.inc");
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
if
(
!
empty
(
$_GET
[
'if'
]))
{
if
(
!
empty
(
$_GET
[
'if'
]))
{
$if
=
htmlspecialchars
(
$_GET
[
'if'
])
;
$if
=
$_GET
[
'if'
]
;
}
}
if
(
!
empty
(
$_GET
[
'savemsg'
])
&&
$_GET
[
'savemsg'
]
==
'rescan'
)
{
if
(
!
empty
(
$_GET
[
'savemsg'
])
&&
$_GET
[
'savemsg'
]
==
'rescan'
)
{
$savemsg
=
gettext
(
"Rescan has been initiated in the background. Refresh this page in 10 seconds to see the results."
);
$savemsg
=
gettext
(
"Rescan has been initiated in the background. Refresh this page in 10 seconds to see the results."
);
}
}
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
if
(
!
empty
(
$_POST
[
'if'
]))
{
if
(
!
empty
(
$_POST
[
'if'
]))
{
$if
=
htmlspecialchars
(
$_POST
[
'if'
])
;
$if
=
$_POST
[
'if'
]
;
}
}
$rwlif
=
escapeshellarg
(
get_real_interface
(
$if
));
$rwlif
=
escapeshellarg
(
get_real_interface
(
$if
));
if
(
!
empty
(
$_POST
[
'rescanwifi'
]))
{
if
(
!
empty
(
$_POST
[
'rescanwifi'
]))
{
mwexec
_bg
(
"/sbin/ifconfig
{
$rwlif
}
scan 2>&1"
);
mwexec
f_bg
(
'/sbin/ifconfig %s scan'
,
$rwlif
);
header
(
"Location: status_wireless.php?if="
.
$if
.
"&savemsg=rescan"
);
header
(
url_safe
(
'Location: status_wireless.php?if=%s&savemsg=rescan'
,
$if
)
);
exit
;
exit
;
}
}
}
}
...
@@ -86,7 +86,7 @@ include("head.inc");
...
@@ -86,7 +86,7 @@ include("head.inc");
?>
?>
<div
class=
"content-box"
>
<div
class=
"content-box"
>
<form
method=
"post"
name=
"iform"
id=
"iform"
>
<form
method=
"post"
name=
"iform"
id=
"iform"
>
<input
type=
"hidden"
name=
"if"
id=
"if"
value=
"
<?=
$if
;
?>
"
>
<input
type=
"hidden"
name=
"if"
id=
"if"
value=
"
<?=
html_safe
(
$if
)
?>
"
>
<header
class=
"content-box-head container-fluid"
>
<header
class=
"content-box-head container-fluid"
>
<h3>
<?=
gettext
(
"Nearby access points or ad-hoc peers"
);
?>
</h3>
<h3>
<?=
gettext
(
"Nearby access points or ad-hoc peers"
);
?>
</h3>
</header>
</header>
...
...
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