From 0953b68556152187ed305323b64b186cc21c2ade Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Mon, 27 May 2013 11:35:31 -0400 Subject: Return null if file size is negative for WebDAV, fix #2013 --- lib/connector/sabre/file.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/connector') diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php index 91646312e90..617be508b16 100644 --- a/lib/connector/sabre/file.php +++ b/lib/connector/sabre/file.php @@ -106,8 +106,11 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D */ public function getSize() { $this->getFileinfoCache(); - return $this->fileinfo_cache['size']; - + if ($this->fileinfo_cache['size'] > -1) { + return $this->fileinfo_cache['size']; + } else { + return null; + } } /** -- cgit v1.2.3