* Filemanager: fixed directory creation in vfs root (you need root permisstions of cause)

This commit is contained in:
Ralf Becker 2014-12-12 15:06:29 +00:00
parent e07c11be85
commit 6eedc38a42

View File

@ -1316,10 +1316,10 @@ class vfs_stream_wrapper implements iface_stream_wrapper
{
$path = self::parse_url($path, PHP_URL_PATH);
}
// remove trailing slashes eg. added by WebDAV
// remove trailing slashes eg. added by WebDAV, but do NOT remove / from "sqlfs://default/"!
if ($path != '/')
{
while (mb_substr($path, -1) == '/' && $path != '/')
while (mb_substr($path, -1) == '/' && $path != '/' && ($path[0] == '/' || self::parse_url($path, PHP_URL_PATH) != '/'))
{
$path = mb_substr($path,0,-1);
}