mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
need to use "c" for partial updates, as "r+" requires the file to exits
This commit is contained in:
parent
a999e6e94f
commit
ff7c7326f5
@ -523,8 +523,8 @@ class HTTP_WebDAV_Server_Filesystem extends HTTP_WebDAV_Server
|
|||||||
return "403 Forbidden";
|
return "403 Forbidden";
|
||||||
}
|
}
|
||||||
|
|
||||||
// for range requests we need to open with "r+" as "w" truncates the file!
|
// for range requests we need to open with "c" as "w" truncates the file!
|
||||||
$fp = fopen($fspath, empty($options['ranges']) ? "w" : "r+");
|
$fp = fopen($fspath, empty($options['ranges']) ? "w" : "c");
|
||||||
|
|
||||||
return $fp;
|
return $fp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user