diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-04 17:19:49 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:14:07 +0200 |
commit | 43c56fcd07f610196d2704158978acca566f5776 (patch) | |
tree | 367a68ea29972430ca6327db263dcb8ed6051157 /apps/files_sharing/ajax/external.php | |
parent | e6f3850890537f8407e4028258e9631d8a0feaf1 (diff) | |
download | nextcloud-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.php | 2 |
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 |