From 824df7e22d8a1762599d694bbfc03283517e7813 Mon Sep 17 00:00:00 2001 From: Felix Böhm Date: Fri, 10 Jul 2015 14:58:32 +0200 Subject: 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 6cf5eb00cb6..69b84564ab1 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -353,7 +353,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( -- cgit v1.2.3