* Filemanager: fix missing symlink overlay on mime-icon

This commit is contained in:
Ralf Becker 2016-08-29 19:42:18 +02:00
parent 94a6ac39d0
commit 4b614c91ed

View File

@ -281,7 +281,7 @@ class Vfs
*/
static function lstat($path,$try_create_home=false)
{
if ($path[0] != '/')
if ($path[0] != '/' && strpos($path, self::PREFIX.'/') !== 0)
{
throw new Exception\AssertionFailed("File '$path' is not an absolute path!");
}
@ -639,7 +639,7 @@ class Vfs
}
else
{
$stat = self::stat($path, STREAM_URL_STAT_LINK);
$stat = self::lstat($path);
}
if (!$stat)
{