Return null if file size is negative for WebDAV, fix #2013

remotes/origin/stable6
Michael Gapczynski 13 years ago
parent c41305d467
commit 0953b68556
  1. 7
      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;
}
}
/**

Loading…
Cancel
Save