Merge pull request #5458 from nextcloud/backport-5375-shared-folder-for-remote-shares

[stable12] Use the share_folder config for remote shares
This commit is contained in:
Björn Schießle 2017-07-07 11:54:11 +02:00 committed by GitHub
commit 8ad1123d5d
1 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,7 @@
namespace OCA\Files_Sharing\External;
use OC\Files\Filesystem;
use OCA\Files_Sharing\Helper;
use OCP\Files;
use OCP\Files\Storage\IStorageFactory;
use OCP\Http\Client\IClientService;
@ -199,8 +200,9 @@ class Manager {
if ($share) {
\OC_Util::setupFS($this->uid);
$mountPoint = Files::buildNotExistingFileName('/', $share['name']);
$mountPoint = Filesystem::normalizePath('/' . $mountPoint);
$shareFolder = Helper::getShareFolder();
$mountPoint = Files::buildNotExistingFileName($shareFolder, $share['name']);
$mountPoint = Filesystem::normalizePath($mountPoint);
$hash = md5($mountPoint);
$acceptShare = $this->connection->prepare('