diff --git a/lib/common.lib.php b/lib/common.lib.php index cc0f8efd0..6a3757a52 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3335,11 +3335,12 @@ function is_include_path_check($path='') //echo 'Caught exception: ', $e->getMessage(), "\n"; return false; } + + if( preg_match('/\/data\/(file|editor)\/[A-Za-z0-9_]{1,20}\//', $path) ){ + return false; + } } - if( !$path || preg_match('/\/data\/(file|editor)\/[A-Za-z0-9_]{1,20}\//', $path) ){ - return false; - } return true; } ?> \ No newline at end of file