exclude csrf_token from froxlor-config.json export; exclude system.updatecheck_data from settings-export

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-30 21:48:59 +01:00
parent f2485ecd9a
commit d643e8c673
2 changed files with 3 additions and 1 deletions

View File

@@ -365,6 +365,7 @@ class Ajax
$params = $_GET;
unset($params['action']);
unset($params['finish']);
unset($params['csrf_token']);
header('Content-disposition: attachment; filename=froxlor-config-' . time() . '.json');
return $this->jsonResponse($params);
}

View File

@@ -56,7 +56,8 @@ class SImExporter
'system.last_tasks_run',
'system.last_archive_run',
'system.leprivatekey',
'system.lepublickey'
'system.lepublickey',
'system.updatecheck_data',
];
public static function export()