From fe91205192b4d31dd641b714a59915eff6ca5c7d Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 7 Apr 2022 14:17:26 -0600 Subject: [PATCH] Check & set context for filesystem:// too --- api/src/Vfs/Filesystem/StreamWrapper.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/src/Vfs/Filesystem/StreamWrapper.php b/api/src/Vfs/Filesystem/StreamWrapper.php index c1d99ef8f6..93694ba973 100644 --- a/api/src/Vfs/Filesystem/StreamWrapper.php +++ b/api/src/Vfs/Filesystem/StreamWrapper.php @@ -45,6 +45,9 @@ use EGroupware\Api\Vfs; */ class StreamWrapper implements Vfs\StreamWrapperIface { + + use Vfs\UserContextTrait; + /** * Scheme / protocol used for this stream-wrapper */ @@ -52,7 +55,7 @@ class StreamWrapper implements Vfs\StreamWrapperIface /** * Mime type of directories, the old vfs used 'Directory', while eg. WebDAV uses 'httpd/unix-directory' */ - const DIR_MIME_TYPE = Vfs::DIR_MIME_TYPE ; + const DIR_MIME_TYPE = Vfs::DIR_MIME_TYPE; /** * mode-bits, which have to be set for files @@ -572,6 +575,7 @@ class StreamWrapper implements Vfs\StreamWrapperIface */ function url_stat ( $url, $flags ) { + $this->check_set_context($url); $parts = Vfs::parse_url($url); $path = Vfs::decodePath($parts['path']);