From d4085d81485c3d973faf4211e11af1c1853e619c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 11 Apr 2014 11:18:50 +0200 Subject: make sure that path is not 'false' --- apps/files_sharing/lib/sharedstorage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/files_sharing/lib/sharedstorage.php') diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 3a31e965548..8254f0e05ca 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -272,9 +272,7 @@ class Shared extends \OC\Files\Storage\Common { public function unlink($path) { // Delete the file if DELETE permission is granted - if ($path == '') { - $path = $this->mountPoint; - } + $path = ($path === false) ? '' : $path; if ($source = $this->getSourcePath($path)) { if ($this->isDeletable($path)) { list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); -- cgit v1.2.3