mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-14 07:41:14 +01:00
Added admin only absolute paths for filesystem protection.
This commit is contained in:
parent
6f6e2d0fb6
commit
ed439142cc
1 changed files with 5 additions and 0 deletions
|
@ -392,6 +392,11 @@ class Project extends Common {
|
||||||
mkdir( WORKSPACE . '/' . $this->path );
|
mkdir( WORKSPACE . '/' . $this->path );
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if( ! is_admin() ) {
|
||||||
|
|
||||||
|
die( formatJSEND( "error", "Absolute Paths are only allowed for admins" ) );
|
||||||
|
}
|
||||||
|
|
||||||
if ( defined( 'WHITEPATHS' ) ) {
|
if ( defined( 'WHITEPATHS' ) ) {
|
||||||
|
|
||||||
$allowed = false;
|
$allowed = false;
|
||||||
|
|
Loading…
Reference in a new issue