aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedstorage.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-11 11:18:50 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:25 +0200
commitd4085d81485c3d973faf4211e11af1c1853e619c (patch)
tree903f6bf0a95f384f5c7ba4bdc5a603c42a4a7bb7 /apps/files_sharing/lib/sharedstorage.php
parent33cdd938904d92607db56c1f3993b74b14ce9bf3 (diff)
downloadnextcloud-server-d4085d81485c3d973faf4211e11af1c1853e619c.tar.gz
nextcloud-server-d4085d81485c3d973faf4211e11af1c1853e619c.zip
make sure that path is not 'false'
Diffstat (limited to 'apps/files_sharing/lib/sharedstorage.php')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php4
1 files changed, 1 insertions, 3 deletions
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);