diff --git a/api/src/Mail.php b/api/src/Mail.php index 6f4d409e26..8fbdd88e3a 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -6797,7 +6797,7 @@ class Mail $myUrl = $directory.$filename; if ($myUrl[0]=='/') // local path -> we only allow path's that are available via http/https (or vfs) { - $basedir = Api\Framework::getUrl('/'); + $basedir = Framework::getUrl('/'); } // use vfs instead of url containing webdav.php // ToDo: we should test if the webdav url is of our own scope, as we cannot handle foreign diff --git a/api/src/Vfs/Filesystem/StreamWrapper.php b/api/src/Vfs/Filesystem/StreamWrapper.php index c2023059ee..b248dbfcc0 100644 --- a/api/src/Vfs/Filesystem/StreamWrapper.php +++ b/api/src/Vfs/Filesystem/StreamWrapper.php @@ -13,6 +13,7 @@ namespace EGroupware\Api\Vfs\Filesystem; +use EGroupware\Api; use EGroupware\Api\Vfs; /**