summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/external.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-04 17:19:49 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:14:07 +0200
commit43c56fcd07f610196d2704158978acca566f5776 (patch)
tree367a68ea29972430ca6327db263dcb8ed6051157 /apps/files_sharing/ajax/external.php
parente6f3850890537f8407e4028258e9631d8a0feaf1 (diff)
downloadnextcloud-server-43c56fcd07f610196d2704158978acca566f5776.tar.gz
nextcloud-server-43c56fcd07f610196d2704158978acca566f5776.zip
Generate a unique name
Diffstat (limited to 'apps/files_sharing/ajax/external.php')
-rw-r--r--apps/files_sharing/ajax/external.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php
index c25b34ab552..3759559764d 100644
--- a/apps/files_sharing/ajax/external.php
+++ b/apps/files_sharing/ajax/external.php
@@ -22,6 +22,8 @@ $externalManager = new \OCA\Files_Sharing\External\Manager(
\OC::$server->getUserSession()
);
+$name = OCP\Files::buildNotExistingFileName('/', $name);
+
$mount = $externalManager->addShare($remote, $token, $password, $name, $owner);
/**
* @var \OCA\Files_Sharing\External\Storage $storage