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
f39ce32b
Commit
f39ce32b
authored
Oct 11, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: url_safe() for #1168
parent
c5ab052b
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
23 additions
and
24 deletions
+23
-24
services_dnsmasq.php
src/www/services_dnsmasq.php
+2
-2
services_dnsmasq_domainoverride_edit.php
src/www/services_dnsmasq_domainoverride_edit.php
+1
-1
services_dnsmasq_edit.php
src/www/services_dnsmasq_edit.php
+1
-1
services_dyndns_edit.php
src/www/services_dyndns_edit.php
+1
-1
services_igmpproxy.php
src/www/services_igmpproxy.php
+1
-1
services_igmpproxy_edit.php
src/www/services_igmpproxy_edit.php
+1
-1
services_ntpd.php
src/www/services_ntpd.php
+1
-1
services_ntpd_gps.php
src/www/services_ntpd_gps.php
+1
-1
services_ntpd_pps.php
src/www/services_ntpd_pps.php
+1
-1
services_rfc2136_edit.php
src/www/services_rfc2136_edit.php
+1
-1
services_snmp.php
src/www/services_snmp.php
+1
-1
services_unbound.php
src/www/services_unbound.php
+2
-2
services_unbound_acls.php
src/www/services_unbound_acls.php
+2
-2
services_unbound_advanced.php
src/www/services_unbound_advanced.php
+2
-2
services_unbound_domainoverride_edit.php
src/www/services_unbound_domainoverride_edit.php
+1
-1
services_unbound_host_edit.php
src/www/services_unbound_host_edit.php
+1
-2
services_unbound_overrides.php
src/www/services_unbound_overrides.php
+1
-1
services_upnp.php
src/www/services_upnp.php
+1
-1
services_wol_edit.php
src/www/services_wol_edit.php
+1
-1
No files found.
src/www/services_dnsmasq.php
View file @
f39ce32b
...
...
@@ -109,7 +109,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
write_config
();
services_dnsmasq_configure
();
header
(
"Location: services_dnsmasq.php"
);
header
(
url_safe
(
'Location: /services_dnsmasq.php'
)
);
exit
;
}
}
elseif
(
isset
(
$pconfig
[
'apply'
]))
{
...
...
@@ -121,7 +121,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
services_dhcpleases_configure
();
services_dnsmasq_configure
();
clear_subsystem_dirty
(
'hosts'
);
header
(
"Location: services_dnsmasq.php"
);
header
(
url_safe
(
'Location: /services_dnsmasq.php'
)
);
exit
;
}
elseif
(
!
empty
(
$pconfig
[
'act'
])
&&
$pconfig
[
'act'
]
==
'del'
)
{
$a_hosts
=
&
$config
[
'dnsmasq'
][
'hosts'
];
...
...
src/www/services_dnsmasq_domainoverride_edit.php
View file @
f39ce32b
...
...
@@ -117,7 +117,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
services_dnsmasq_configure
();
write_config
();
header
(
"Location: services_dnsmasq.php"
);
header
(
url_safe
(
'Location: /services_dnsmasq.php'
)
);
exit
;
}
}
...
...
src/www/services_dnsmasq_edit.php
View file @
f39ce32b
...
...
@@ -134,7 +134,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
usort
(
$config
[
'dnsmasq'
][
'hosts'
],
"hostcmp"
);
mark_subsystem_dirty
(
'hosts'
);
write_config
();
header
(
"Location: services_dnsmasq.php"
);
header
(
url_safe
(
'Location: /services_dnsmasq.php'
)
);
exit
;
}
}
...
...
src/www/services_dyndns_edit.php
View file @
f39ce32b
...
...
@@ -162,7 +162,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
();
services_dyndns_configure_client
(
$dyndns
);
header
(
"Location: services_dyndns.php"
);
header
(
url_safe
(
'Location: /services_dyndns.php'
)
);
exit
;
}
}
...
...
src/www/services_igmpproxy.php
View file @
f39ce32b
...
...
@@ -51,7 +51,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
/* reload all components that use igmpproxy */
services_igmpproxy_configure
();
clear_subsystem_dirty
(
'igmpproxy'
);
header
(
"Location: services_igmpproxy.php"
);
header
(
url_safe
(
'Location: /services_igmpproxy.php'
)
);
exit
;
}
}
...
...
src/www/services_igmpproxy_edit.php
View file @
f39ce32b
...
...
@@ -95,7 +95,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
();
mark_subsystem_dirty
(
'igmpproxy'
);
header
(
"Location: services_igmpproxy.php"
);
header
(
url_safe
(
'Location: /services_igmpproxy.php'
)
);
exit
;
}
}
...
...
src/www/services_ntpd.php
View file @
f39ce32b
...
...
@@ -114,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
write_config
(
"Updated NTP Server Settings"
);
system_ntp_configure
();
header
(
"Location: services_ntpd.php"
);
header
(
url_safe
(
'Location: /services_ntpd.php'
)
);
exit
;
}
}
...
...
src/www/services_ntpd_gps.php
View file @
f39ce32b
...
...
@@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$config
[
'ntpd'
][
'gps'
]
=
$gps
;
write_config
(
"Updated NTP GPS Settings"
);
system_ntp_configure
();
header
(
"Location: services_ntpd_gps.php"
);
header
(
url_safe
(
'Location: /services_ntpd_gps.php'
)
);
exit
;
}
}
...
...
src/www/services_ntpd_pps.php
View file @
f39ce32b
...
...
@@ -67,7 +67,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$config
[
'ntpd'
][
'pps'
]
=
$pps
;
write_config
(
"Updated NTP PPS Settings"
);
system_ntp_configure
();
header
(
"Location: services_ntpd_pps.php"
);
header
(
url_safe
(
'Location: /services_ntpd_pps.php'
)
);
exit
;
}
}
...
...
src/www/services_rfc2136_edit.php
View file @
f39ce32b
...
...
@@ -109,7 +109,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
else
{
services_dnsupdate_process
();
}
header
(
"Location: services_rfc2136.php"
);
header
(
url_safe
(
'Location: /services_rfc2136.php'
)
);
exit
;
}
}
...
...
src/www/services_snmp.php
View file @
f39ce32b
...
...
@@ -117,7 +117,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
();
services_snmpd_configure
();
get_std_save_message
();
header
(
"Location: services_snmp.php"
);
header
(
url_safe
(
'Location: /services_snmp.php'
)
);
exit
;
}
}
...
...
src/www/services_unbound.php
View file @
f39ce32b
...
...
@@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
clear_subsystem_dirty
(
'unbound'
);
/* Update resolv.conf in case the interface bindings exclude localhost. */
system_resolvconf_generate
();
header
(
"Location: services_unbound.php"
);
header
(
url_safe
(
'Location: /services_unbound.php'
)
);
exit
;
}
else
{
// perform validations
...
...
@@ -102,7 +102,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
(
"DNS Resolver configured."
);
mark_subsystem_dirty
(
'unbound'
);
header
(
"Location: services_unbound.php"
);
header
(
url_safe
(
'Location: /services_unbound.php'
)
);
exit
;
}
}
...
...
src/www/services_unbound_acls.php
View file @
f39ce32b
...
...
@@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if
(
!
empty
(
$pconfig
[
'apply'
]))
{
services_unbound_configure
();
clear_subsystem_dirty
(
'unbound'
);
header
(
"Location: services_unbound_acls.php"
);
header
(
url_safe
(
'Location: /services_unbound_acls.php'
)
);
exit
;
}
elseif
(
!
empty
(
$act
)
&&
$act
==
"del"
)
{
if
(
isset
(
$id
)
&&
!
empty
(
$a_acls
[
$id
]))
{
...
...
@@ -112,7 +112,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
mark_subsystem_dirty
(
"unbound"
);
write_config
();
header
(
"Location: services_unbound_acls.php"
);
header
(
url_safe
(
'Location: /services_unbound_acls.php'
)
);
exit
;
}
}
...
...
src/www/services_unbound_advanced.php
View file @
f39ce32b
...
...
@@ -71,7 +71,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if
(
!
empty
(
$_POST
[
'apply'
]))
{
services_unbound_configure
();
clear_subsystem_dirty
(
'unbound'
);
header
(
"Location: services_unbound_advanced.php"
);
header
(
url_safe
(
'Location: /services_unbound_advanced.php'
)
);
exit
;
}
else
{
$pconfig
=
$_POST
;
...
...
@@ -87,7 +87,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
write_config
(
"DNS Resolver configured."
);
mark_subsystem_dirty
(
'unbound'
);
header
(
"Location: services_unbound_advanced.php"
);
header
(
url_safe
(
'Location: /services_unbound_advanced.php'
)
);
exit
;
}
}
...
...
src/www/services_unbound_domainoverride_edit.php
View file @
f39ce32b
...
...
@@ -93,7 +93,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty
(
'unbound'
);
write_config
();
header
(
"Location: services_unbound_overrides.php"
);
header
(
url_safe
(
'Location: /services_unbound_overrides.php'
)
);
exit
;
}
}
...
...
src/www/services_unbound_host_edit.php
View file @
f39ce32b
...
...
@@ -125,10 +125,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
usort
(
$a_hosts
,
"hostcmp"
);
mark_subsystem_dirty
(
'unbound'
);
write_config
();
header
(
"Location: services_unbound_overrides.php"
);
header
(
url_safe
(
'Location: /services_unbound_overrides.php'
)
);
exit
;
}
}
$service_hook
=
'unbound'
;
...
...
src/www/services_unbound_overrides.php
View file @
f39ce32b
...
...
@@ -60,7 +60,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
clear_subsystem_dirty
(
'unbound'
);
/* Update resolv.conf in case the interface bindings exclude localhost. */
system_resolvconf_generate
();
header
(
"Location: services_unbound_overrides.php"
);
header
(
url_safe
(
'Location: /services_unbound_overrides.php'
)
);
exit
;
}
elseif
(
!
empty
(
$pconfig
[
'act'
])
&&
$pconfig
[
'act'
]
==
'del'
)
{
if
(
isset
(
$pconfig
[
'id'
])
&&
!
empty
(
$a_hosts
[
$pconfig
[
'id'
]]))
{
...
...
src/www/services_upnp.php
View file @
f39ce32b
...
...
@@ -150,7 +150,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
(
'Modified Universal Plug and Play settings'
);
sync_package_miniupnpd
();
header
(
"Location: services_upnp.php"
);
header
(
url_safe
(
'Location: /services_upnp.php'
)
);
exit
;
}
}
...
...
src/www/services_wol_edit.php
View file @
f39ce32b
...
...
@@ -88,7 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
usort
(
$config
[
'wol'
][
'wolentry'
],
"wolcmp"
);
write_config
();
header
(
"Location: services_wol.php"
);
header
(
url_safe
(
'Location: /services_wol.php'
)
);
exit
;
}
}
...
...
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