From 431d92e7b2f59e905b3388052c6998e5c4772690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 2 Oct 2012 21:37:10 +0200 Subject: [PATCH] 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 --- lib/public/share.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/public/share.php b/lib/public/share.php index 2f06dcb864..42c4db6152 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();