Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add rootfolder to reserved path
- Loading branch information
Showing
with
1 addition
and
4 deletions.
-
+1
−4
conf/ext/thebrig/extensions_thebrig_edit.php
|
|
@@ -184,6 +184,7 @@ |
|
|
$thebrig_names = array ("basejail" , "work" , "conf" , "template" ); |
|
|
$thebrig_dirs = $thebrig_names + array ( "conf/ext" , "conf/bin"); |
|
|
$thebrig_dirs = preg_replace("/(.+)/", $config['thebrig']['rootfolder'] . "$1/", $thebrig_dirs, 1); |
|
|
$thebrig_dirs[] = $config['thebrig']['rootfolder']; |
|
|
|
|
|
if ( array_search ($pconfig['jailname'], $thebrig_names ) !== FALSE) |
|
|
$input_errors[] = "The specified jailname is reserved. Please choose another."; |
|
|
@@ -267,10 +268,6 @@ |
|
|
$input_errors[] = "Could not create directory for jail to live in!"; |
|
|
} |
|
|
|
|
|
// Validate if jail number is unique in order to reorder the jails (if necessary) |
|
|
// Alexey - why do we care about the jail number or the uuid? |
|
|
// Why not use the name? |
|
|
|
|
|
// a_jail is the list of all jails, sorted by their jail number |
|
|
|
|
|
if ( empty( $input_errors )) { |
|
|
|