mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Make sure path is not empty before using it, fixes error "an error happened! File '' is not an absolute path!"
This commit is contained in:
parent
a9dc772e14
commit
50a34d9c42
@ -627,7 +627,7 @@ if (file_exists(__DIR__.'/../../../filemanager/inc/class.filemanager_ui.inc.php'
|
||||
function get_rows(&$query, &$rows)
|
||||
{
|
||||
// Check for navigating outside share, redirect back to share
|
||||
if (!Vfs::stat($query['path'],false) || !Vfs::is_dir($query['path']) || !Vfs::check_access($query['path'],Vfs::READABLE))
|
||||
if (!empty($query['path']) && (!Vfs::stat($query['path'],false) || !Vfs::is_dir($query['path']) || !Vfs::check_access($query['path'],Vfs::READABLE)))
|
||||
{
|
||||
// only redirect, if it would be to some other location, gives redirect-loop otherwise
|
||||
if ($query['path'] != ($path = static::get_home_dir()))
|
||||
|
Loading…
Reference in New Issue
Block a user