"fixed failed move or rename via WebDAV (eg. NetDrive on Windows):

trailing slashes added to all collections caused a rename to an empty filename
--> all training slashes get now removed prior to calling any backend functions"
This commit is contained in:
Ralf Becker 2009-04-30 07:50:02 +00:00
parent cfc74f5918
commit 09aa8c46bb

View File

@ -111,6 +111,11 @@ class vfs_stream_wrapper implements iface_stream_wrapper
{
static $cache = array();
// remove training slashes eg. added by WebDAV
while(substr($path,-1) == '/' && $path != '/')
{
$path = substr($path,0,-1);
}
// we do some caching here
if (isset($cache[$path]))
{