diff --git a/CHANGELOG b/CHANGELOG index 41663ad..f43cbe4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.0.41......Set target jail path on advanced config editor by default. 1.0.40......Cleanup, remove obsolete file 1.0.39......Update config, remove unused variable. 1.0.38......Always pre-configure bastille.conf on new installs. diff --git a/gui/bastille_manager_editor.php b/gui/bastille_manager_editor.php index 5ac2316..616ebbd 100644 --- a/gui/bastille_manager_editor.php +++ b/gui/bastille_manager_editor.php @@ -39,7 +39,8 @@ require_once 'auth.inc'; require_once 'guiconfig.inc'; require_once("bastille_manager-lib.inc"); -$savetopath = "{$rootfolder}/jails/"; +$item = $_SESSION['item']; +$savetopath = "{$rootfolder}/jails/{$item}"; if (isset($_POST['savetopath'])) { $savetopath = htmlspecialchars($_POST['savetopath']); } diff --git a/gui/bastille_manager_util.php b/gui/bastille_manager_util.php index 7f53810..089f64e 100644 --- a/gui/bastille_manager_util.php +++ b/gui/bastille_manager_util.php @@ -97,6 +97,7 @@ if($_POST): $container['jailname'] = $_POST['jailname']; $confirm_name = $pconfig['confirmname']; $item = $container['jailname']; + $_SESSION['item'] = $item; if ($_POST['advanced']): header('Location: bastille_manager_editor.php'); exit; diff --git a/version b/version index 42de374..7cb055c 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.40 +1.0.41