From 4b614c91ed653962d71e68c4109ed5cf31f2f126 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 29 Aug 2016 19:42:18 +0200 Subject: [PATCH] * Filemanager: fix missing symlink overlay on mime-icon --- api/src/Vfs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 28ddad8015..1afff482cc 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -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) {