Added admin only absolute paths for filesystem protection.

This commit is contained in:
xevidos 2019-03-11 10:04:02 -04:00
parent 6f6e2d0fb6
commit ed439142cc

View file

@ -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;