mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
"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:
parent
cfc74f5918
commit
09aa8c46bb
@ -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]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user