From c9917e4cd69a28038645e4eaab49712692be5a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=B6hm?= <felixboehm@gmx.de> Date: Fri, 10 Jul 2015 14:58:32 +0200 Subject: [PATCH] allow remote shares for users with email as usernames --- core/ajax/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ajax/share.php b/core/ajax/share.php index d8aec9c6542..95219ce8791 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -296,7 +296,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo // allow user to add unknown remote addresses for server-to-server share $backend = \OCP\Share::getBackend((string)$_GET['itemType']); if ($backend->isShareTypeAllowed(\OCP\Share::SHARE_TYPE_REMOTE)) { - if (substr_count((string)$_GET['search'], '@') === 1) { + if (substr_count((string)$_GET['search'], '@') >= 1) { $shareWith[] = array( 'label' => (string)$_GET['search'], 'value' => array( -- GitLab