Set target jail path on advanced config editor by default

This commit is contained in:
Jose
2020-03-20 20:24:39 -04:00
parent 1c219693c1
commit ff9889d592
4 changed files with 5 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
====================== ======================
Version Description Version Description
1.0.41......Set target jail path on advanced config editor by default.
1.0.40......Cleanup, remove obsolete file 1.0.40......Cleanup, remove obsolete file
1.0.39......Update config, remove unused variable. 1.0.39......Update config, remove unused variable.
1.0.38......Always pre-configure bastille.conf on new installs. 1.0.38......Always pre-configure bastille.conf on new installs.

View File

@@ -39,7 +39,8 @@ require_once 'auth.inc';
require_once 'guiconfig.inc'; require_once 'guiconfig.inc';
require_once("bastille_manager-lib.inc"); require_once("bastille_manager-lib.inc");
$savetopath = "{$rootfolder}/jails/"; $item = $_SESSION['item'];
$savetopath = "{$rootfolder}/jails/{$item}";
if (isset($_POST['savetopath'])) { if (isset($_POST['savetopath'])) {
$savetopath = htmlspecialchars($_POST['savetopath']); $savetopath = htmlspecialchars($_POST['savetopath']);
} }

View File

@@ -97,6 +97,7 @@ if($_POST):
$container['jailname'] = $_POST['jailname']; $container['jailname'] = $_POST['jailname'];
$confirm_name = $pconfig['confirmname']; $confirm_name = $pconfig['confirmname'];
$item = $container['jailname']; $item = $container['jailname'];
$_SESSION['item'] = $item;
if ($_POST['advanced']): if ($_POST['advanced']):
header('Location: bastille_manager_editor.php'); header('Location: bastille_manager_editor.php');
exit; exit;

View File

@@ -1 +1 @@
1.0.40 1.0.41