]> source.dussan.org Git - nextcloud-server.git/commitdiff
also call generateTarget for group share to add the correct prefix if share_folder...
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 20 Mar 2015 14:51:25 +0000 (15:51 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 20 Mar 2015 14:51:25 +0000 (15:51 +0100)
lib/private/share/share.php

index be113568a3b2cb3ac6dfcbf0a7a206d5136325c3..5f8f82bd77e384cf2423ffc1f094c92a6d161de6 100644 (file)
@@ -1678,7 +1678,8 @@ class Share extends \OC\Share\Constants {
                        }
                        $groupItemTarget = Helper::generateTarget($itemType, $itemSource, $shareType, $shareWith['group'],
                                        $uidOwner, $suggestedItemTarget);
-                       $groupFileTarget = $filePath;
+                       $groupFileTarget = Helper::generateTarget($itemType, $itemSource, $shareType, $shareWith['group'],
+                                       $uidOwner, $filePath);
 
                        // add group share to table and remember the id as parent
                        $queriesToExecute['groupShare'] = array(
@@ -1691,7 +1692,7 @@ class Share extends \OC\Share\Constants {
                                'permissions'           => $permissions,
                                'shareTime'                     => time(),
                                'fileSource'            => $fileSource,
-                               'fileTarget'            => $filePath,
+                               'fileTarget'            => $groupFileTarget,
                                'token'                         => $token,
                                'parent'                        => $parent,
                                'expiration'            => $expirationDate,