summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2015-12-14 16:04:05 +0100
committerBjörn Schießle <bjoern@schiessle.org>2015-12-14 17:25:10 +0100
commitc4b65170f2d77298f130f959d85ac3be5f6ea0a8 (patch)
treea6ca8534f66cb6d77e6b170bdf9396a087b67e9a /apps/files_sharing/ajax
parentefc030aa25b047a7c9f720cf781f26cbe1d274e0 (diff)
downloadnextcloud-server-c4b65170f2d77298f130f959d85ac3be5f6ea0a8.tar.gz
nextcloud-server-c4b65170f2d77298f130f959d85ac3be5f6ea0a8.zip
show display name but internally use the user name
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/external.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php
index 65861ac6a04..2ba1cb470c2 100644
--- a/apps/files_sharing/ajax/external.php
+++ b/apps/files_sharing/ajax/external.php
@@ -40,6 +40,7 @@ if (OCA\Files_Sharing\Helper::isIncomingServer2serverShareEnabled() === false) {
$token = $_POST['token'];
$remote = $_POST['remote'];
$owner = $_POST['owner'];
+$ownerDisplayName = $_POST['ownerDisplayName'];
$name = $_POST['name'];
$password = $_POST['password'];
@@ -76,7 +77,7 @@ if (substr($remote, 0, 5) === 'https') {
}
}
-$mount = $externalManager->addShare($remote, $token, $password, $name, $owner, true);
+$mount = $externalManager->addShare($remote, $token, $password, $name, $ownerDisplayName, true);
/**
* @var \OCA\Files_Sharing\External\Storage $storage