mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
(legacy) openvpn don't write empty xml tags to avoid issues with backend
This commit is contained in:
parent
73f382fb83
commit
29d4755b71
@ -264,7 +264,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
foreach (explode(",",$copy_fields) as $fieldname) {
|
||||
$fieldname = trim($fieldname);
|
||||
if(isset($pconfig[$fieldname])) {
|
||||
if(!empty($pconfig[$fieldname])) {
|
||||
$client[$fieldname] = $pconfig[$fieldname];
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,7 +167,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// 1 on 1 copy of config attributes
|
||||
foreach (explode(",",$all_form_fields) as $fieldname) {
|
||||
$fieldname = trim($fieldname);
|
||||
if(isset($pconfig[$fieldname])) {
|
||||
if(!empty($pconfig[$fieldname])) {
|
||||
$csc[$fieldname] = $pconfig[$fieldname];
|
||||
}
|
||||
}
|
||||
|
||||
@ -329,7 +329,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
foreach (explode(",",$copy_fields) as $fieldname) {
|
||||
$fieldname = trim($fieldname);
|
||||
if(isset($pconfig[$fieldname])) {
|
||||
if(!empty($pconfig[$fieldname])) {
|
||||
$server[$fieldname] = $pconfig[$fieldname];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user