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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user