diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-07 00:01:52 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-07 00:02:22 -0400 |
commit | 73d726d1b26f011e77761934bcf7f5ce8db86241 (patch) | |
tree | b95913dddcd74b71a97c20ea843d5a4ea23ded16 /lib/public | |
parent | 17dadd5c8a39f1903ffeec2c2c78e5e6cd145d9c (diff) | |
download | nextcloud-server-73d726d1b26f011e77761934bcf7f5ce8db86241.tar.gz nextcloud-server-73d726d1b26f011e77761934bcf7f5ce8db86241.zip |
Support for unshare from self, with a bunch of temporary fixes to overcome configuration problems with file actions
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 7b6b78561d4..cf61681424f 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -340,7 +340,7 @@ class Share { // TODO } // Delete - return self::delete($item['id'], true); + return self::delete($item['id']); } return false; } @@ -564,6 +564,7 @@ class Share { } else { if ($itemType == 'file' || $itemType == 'folder') { $where .= ' `file_target` = ?'; + $item = \OC_Filesystem::normalizePath($item); } else { $where .= ' `item_target` = ?'; } |