summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-23 17:32:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 18:42:01 +0200
commit36c31b0e83dafa0499a769fa6c15adeca5e90d28 (patch)
tree3b0024a3e07d52c9d04e170a852fab1b2be45f87 /lib/filesystem.php
parentc7d4e723417f3fad2a306af1f2053cdafde8af43 (diff)
downloadnextcloud-server-36c31b0e83dafa0499a769fa6c15adeca5e90d28.tar.gz
nextcloud-server-36c31b0e83dafa0499a769fa6c15adeca5e90d28.zip
fix warning when uploading file using webdav
When uploading a file using davfs php warned about a missing argument to OC_FileProxy_Quota::preFile_put_contents(). Since we get a resource from OC_Connector_Sabre_File->put(), we have to convert that before running strlen because it expects a string. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index f242a1b158e..d7c485d25b8 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -454,7 +454,7 @@ class OC_Filesystem{
* @return mixed
*/
private static function basicOperation($operation,$path,$hooks=array(),$extraParam=null){
- if(OC_FileProxy::runPreProxies($operation,$path) and self::canRead($path) and $storage=self::getStorage($path)){
+ if(OC_FileProxy::runPreProxies($operation,$path, $extraParam) and self::canRead($path) and $storage=self::getStorage($path)){
$interalPath=self::getInternalPath($path);
$run=true;
foreach($hooks as $hook){