Return null if file size is negative for WebDAV, fix #2013
This commit is contained in:
parent
c41305d467
commit
0953b68556
|
@ -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…
Reference in New Issue