aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-24 15:05:58 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-24 15:05:58 +0100
commit965d97a8f582984c2d2454d7c62faa2086ac677c (patch)
treefb1756b0f657f154761c58240303bed1a64b2955 /apps/files_sharing/ajax
parentcc2092a511c3d09ac2e0eb0d4bf75a58f6f4366b (diff)
parent8ebb198ef38670859be8d42c13ddebd36a894381 (diff)
downloadnextcloud-server-965d97a8f582984c2d2454d7c62faa2086ac677c.tar.gz
nextcloud-server-965d97a8f582984c2d2454d7c62faa2086ac677c.zip
Merge pull request #14580 from owncloud/issue/13765-duplicate-remote-share
"Integrity constraint violation" when sharing the same item twice with the same user
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/external.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php
index 30c1f38801e..153285e11ff 100644
--- a/apps/files_sharing/ajax/external.php
+++ b/apps/files_sharing/ajax/external.php
@@ -38,8 +38,6 @@ $externalManager = new \OCA\Files_Sharing\External\Manager(
\OC::$server->getUserSession()->getUser()->getUID()
);
-$name = OCP\Files::buildNotExistingFileName('/', $name);
-
// check for ssl cert
if (substr($remote, 0, 5) === 'https' and !OC_Util::getUrlContent($remote)) {
\OCP\JSON::error(array('data' => array('message' => $l->t('Invalid or untrusted SSL certificate'))));