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
05b1fa9a
Commit
05b1fa9a
authored
Sep 24, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vpn: url_safe() in IPsec pages
parent
d3bca141
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
vpn_ipsec.php
src/www/vpn_ipsec.php
+7
-7
vpn_ipsec_keys.php
src/www/vpn_ipsec_keys.php
+2
-2
vpn_ipsec_keys_edit.php
src/www/vpn_ipsec_keys_edit.php
+1
-1
vpn_ipsec_phase1.php
src/www/vpn_ipsec_phase1.php
+1
-1
vpn_ipsec_phase2.php
src/www/vpn_ipsec_phase2.php
+1
-1
No files found.
src/www/vpn_ipsec.php
View file @
05b1fa9a
...
...
@@ -92,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
ipsec_configure
();
filter_configure
();
clear_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
elseif
(
!
empty
(
$_POST
[
'act'
])
&&
$_POST
[
'act'
]
==
"delphase1"
)
{
$del_items
=
array
();
...
...
@@ -119,7 +119,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
elseif
(
!
empty
(
$_POST
[
'act'
])
&&
$_POST
[
'act'
]
==
"delphase2"
)
{
if
(
isset
(
$_POST
[
'id'
])
&&
isset
(
$config
[
'ipsec'
][
'phase2'
][
$_POST
[
'id'
]])){
...
...
@@ -131,7 +131,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
elseif
(
!
empty
(
$_POST
[
'act'
])
&&
$_POST
[
'act'
]
==
"movep1"
)
{
// move phase 1 records
...
...
@@ -146,7 +146,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
elseif
(
!
empty
(
$_POST
[
'act'
])
&&
$_POST
[
'act'
]
==
"movep2"
)
{
// move phase 2 records
...
...
@@ -161,7 +161,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
elseif
(
!
empty
(
$_POST
[
'act'
])
&&
$_POST
[
'act'
]
==
"togglep1"
&&
isset
(
$a_phase1
[
$_POST
[
'id'
]])
)
{
// toggle phase 1 record
...
...
@@ -172,7 +172,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
elseif
(
!
empty
(
$_POST
[
'act'
])
&&
$_POST
[
'act'
]
==
"togglep2"
&&
isset
(
$a_phase2
[
$_POST
[
'id'
]])
)
{
// toggle phase 2 record
...
...
@@ -183,7 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
}
...
...
src/www/vpn_ipsec_keys.php
View file @
05b1fa9a
...
...
@@ -51,7 +51,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
unset
(
$config
[
'ipsec'
][
'mobilekey'
][
$_POST
[
'id'
]]);
write_config
(
'Deleted pre-shared IPsec key'
);
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec_keys.php"
);
header
(
url_safe
(
'Location: vpn_ipsec_keys.php'
)
);
exit
;
}
}
elseif
(
isset
(
$_POST
[
'apply'
]))
{
...
...
@@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
clear_subsystem_dirty
(
'ipsec'
);
}
else
{
// nothing to post, redirect
header
(
"Location: vpn_ipsec_keys.php"
);
header
(
url_safe
(
'Location: vpn_ipsec_keys.php'
)
);
exit
;
}
}
...
...
src/www/vpn_ipsec_keys_edit.php
View file @
05b1fa9a
...
...
@@ -111,7 +111,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
(
"
{
$config_write_text
}
IPsec Pre-Shared Keys"
);
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec_keys.php"
);
header
(
url_safe
(
'Location: vpn_ipsec_keys.php'
)
);
exit
;
}
}
...
...
src/www/vpn_ipsec_phase1.php
View file @
05b1fa9a
...
...
@@ -397,7 +397,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.php'
)
);
exit
;
}
}
...
...
src/www/vpn_ipsec_phase2.php
View file @
05b1fa9a
...
...
@@ -445,7 +445,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config
();
mark_subsystem_dirty
(
'ipsec'
);
header
(
"Location: vpn_ipsec.php"
);
header
(
url_safe
(
'Location: vpn_ipsec.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