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
a85a46b8
Commit
a85a46b8
authored
Sep 02, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: url_safe() redirects
PR:
https://github.com/opnsense/core/issues/1168
parent
73e58543
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
picture.widget.php
src/www/widgets/widgets/picture.widget.php
+1
-1
rss.widget.php
src/www/widgets/widgets/rss.widget.php
+2
-1
services_status.widget.php
src/www/widgets/widgets/services_status.widget.php
+3
-1
thermal_sensors.widget.php
src/www/widgets/widgets/thermal_sensors.widget.php
+3
-3
No files found.
src/www/widgets/widgets/picture.widget.php
View file @
a85a46b8
...
...
@@ -58,7 +58,7 @@ if ($_POST) {
$config
[
'widgets'
][
'picturewidget'
]
=
base64_encode
(
$data
);
$config
[
'widgets'
][
'picturewidget_filename'
]
=
$_FILES
[
'pictfile'
][
'name'
];
write_config
(
"Picture widget saved via Dashboard."
);
header
(
"Location: /index.php"
);
header
(
url_safe
(
'Location: index.php'
)
);
exit
;
}
}
...
...
src/www/widgets/widgets/rss.widget.php
View file @
a85a46b8
...
...
@@ -44,7 +44,8 @@ if (!empty($_POST['rssfeed'])) {
$config
[
'widgets'
][
'rsswidgetheight'
]
=
htmlspecialchars
(
$_POST
[
'rsswidgetheight'
],
ENT_QUOTES
|
ENT_HTML401
);
$config
[
'widgets'
][
'rsswidgettextlength'
]
=
htmlspecialchars
(
$_POST
[
'rsswidgettextlength'
],
ENT_QUOTES
|
ENT_HTML401
);
write_config
(
"Saved RSS Widget feed via Dashboard"
);
header
(
"Location: /"
);
header
(
url_safe
(
'Location: index.php'
));
exit
;
}
// Use saved feed and max items
...
...
src/www/widgets/widgets/services_status.widget.php
View file @
a85a46b8
...
...
@@ -41,8 +41,10 @@ $services = services_get();
if
(
isset
(
$_POST
[
'servicestatusfilter'
]))
{
$config
[
'widgets'
][
'servicestatusfilter'
]
=
htmlspecialchars
(
$_POST
[
'servicestatusfilter'
],
ENT_QUOTES
|
ENT_HTML401
);
write_config
(
"Saved Service Status Filter via Dashboard"
);
header
(
"Location: /index.php"
);
header
(
url_safe
(
'Location: index.php'
));
exit
;
}
?>
<div
id=
"services_status-settings"
class=
"widgetconfigdiv"
style=
"display:none;"
>
<form
action=
"/widgets/widgets/services_status.widget.php"
method=
"post"
name=
"iformd"
>
...
...
src/www/widgets/widgets/thermal_sensors.widget.php
View file @
a85a46b8
...
...
@@ -55,11 +55,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$config
[
'widgets'
][
'thermal_sensors_widget'
][
$fieldname
]
=
validate_temp_value
(
$newValue
)
?
$newValue
:
$defaultValue
;
}
write_config
(
"Thermal sensors widget saved via Dashboard."
);
header
(
"Location: /index.php"
);
die
;
header
(
url_safe
(
'Location: index.php'
)
);
exit
;
}
?>
?>
<script
type=
"text/javascript"
>
function
thermal_sensors_widget_update
(
sender
,
data
)
{
...
...
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