summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/diag_confbak.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php
index bf6c3f2..dac115b 100644
--- a/usr/local/www/diag_confbak.php
+++ b/usr/local/www/diag_confbak.php
@@ -73,6 +73,7 @@ if (isset($_POST['backupcount'])) {
}
if($_GET['getcfg'] != "") {
+ $_GET['getcfg'] = basename($_GET['getcfg']);
$file = $g['conf_path'] . '/backup/config-' . $_GET['getcfg'] . '.xml';
$exp_name = urlencode("config-{$config['system']['hostname']}.{$config['system']['domain']}-{$_GET['getcfg']}.xml");
OpenPOWER on IntegriCloud