summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-04-21 18:28:15 +0200
committerVincent Petry <pvince81@owncloud.com>2015-04-21 18:28:15 +0200
commitffc796edcb02f9428ecd706ff4af4c5583928f2b (patch)
tree773d6d96c0d8a16d70351175bd01d2469da713a1 /apps/files_trashbin
parent9dc12d40d846d54e024812c2c23c402073f8dd03 (diff)
downloadnextcloud-server-ffc796edcb02f9428ecd706ff4af4c5583928f2b.tar.gz
nextcloud-server-ffc796edcb02f9428ecd706ff4af4c5583928f2b.zip
Do not trash part files, delete directly
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/storage.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/storage.php b/apps/files_trashbin/lib/storage.php
index 61e0816fd24..418d7d2f1fd 100644
--- a/apps/files_trashbin/lib/storage.php
+++ b/apps/files_trashbin/lib/storage.php
@@ -84,7 +84,10 @@ class Storage extends Wrapper {
* @param string $path
*/
public function unlink($path) {
- if (self::$disableTrash || !\OC_App::isEnabled('files_trashbin')) {
+ if (self::$disableTrash
+ || !\OC_App::isEnabled('files_trashbin')
+ || (pathinfo($path, PATHINFO_EXTENSION) === 'part')
+ ) {
return $this->storage->unlink($path);
}
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);