mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Added admin only absolute paths for filesystem protection.
This commit is contained in:
parent
6f6e2d0fb6
commit
ed439142cc
@ -392,6 +392,11 @@ class Project extends Common {
|
||||
mkdir( WORKSPACE . '/' . $this->path );
|
||||
} else {
|
||||
|
||||
if( ! is_admin() ) {
|
||||
|
||||
die( formatJSEND( "error", "Absolute Paths are only allowed for admins" ) );
|
||||
}
|
||||
|
||||
if ( defined( 'WHITEPATHS' ) ) {
|
||||
|
||||
$allowed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user