diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-02 21:37:10 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-02 21:37:10 +0200 |
commit | 431d92e7b2f59e905b3388052c6998e5c4772690 (patch) | |
tree | 03d721862ae7463440555dbf5251974f29dcd134 | |
parent | db954f5aba94318280953fdd8a1af087680c1e2b (diff) | |
download | nextcloud-server-431d92e7b2f59e905b3388052c6998e5c4772690.tar.gz nextcloud-server-431d92e7b2f59e905b3388052c6998e5c4772690.zip |
we are sharing the same file again if item_source of the already shared file and the newly shared file is the same. Therefore we can use the same target name
-rw-r--r-- | lib/public/share.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 2f06dcb8641..42c4db61521 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -1014,6 +1014,9 @@ class Share { continue; } } + if ($item['uid_owner'] == $uidOwner && $item['item_source'] == \OC_FileCache::getId($itemSource) ) { + return $target;
+ } } if (!isset($exclude)) { $exclude = array(); |